Hi everyone, I wanted to make an Assetto Corsa as an environent for my AI agent, but to do that I needed to collect data first. I saw a library that did that, but it used mss library for screen capture, and that dropped my fps down to 3 ( pretty much pointless then). So I wanted to use the d3dshot library, as its touted to be one of the fastest screen capture libraries with around 60 fps. I need some help with adding d3dshot library to my app, I have tried everything, but I can't get it to import. Let me know if someone can help me with this. Github repo: https://github.com/Mashex/Assetto-Corsa-Data-Collector/tree/master Thanks and Regards
Dont use screencapture unless you are able to utilize some hardware graphics operations Consider reading ai-line first, like 3dmap does https://www.racedepartment.com/downloads/3d-map.20064/ and then using shared memory stuff to get position of the car ingame (using it from outside AC is a bit different than example mentioned here) https://assettocorsamods.net/threads/doc-shared-memory-reference.58/ note: this would not work if track has no ai-line of course
Thanks for your reply, I appreciate you pointing out different ways to get the car's position, but my main goal is to only use the camera view of the car for my project and nothing else. That's why I have to apply screen capture. Please let me know if you have any idea to get screen capture data. Thanks a lot!
Yup, the above video is by sentdex, I have seen all of his videos, and they are a huge help. I can directly record the screen, through my system's python and get the controls, but the idea of getting those through AC's inbuilt python app provided me with the flexibility as well as the ease of recording the data directly through a button while playing, I would also have the benefit of getting extra data, such as speed, g-force, etc, if I want to use those features later on. There is already an app: https://github.com/briansfma/AC-Synced-Logger. But it uses MSS as a screen capture tool, and that is extremely slow. It drops my FPS from 90-100 all the way down to 3-5. I was trying to implement D3DSHOT instead of MSS, as it claims to work very fast ( 60 fps ). I was trying to make an app because it is the most convenient for me, and I could easily share it with my friends to help me collect data( cause I need around 20 hrs :| ). I could use any help that I can get.