HackerPolice / MissedIT

Fully Featured hack Always Free As Feedom
GNU General Public License v3.0
38 stars 10 forks source link

sdl/imgui hack overlay fps cap #27

Open dev5tar opened 2 years ago

dev5tar commented 2 years ago

Ive experienced this issue with every fork of aimtux, or any application that uses imgui and sdl_swapwindow stuff. At this point Im to assume gamesneeze is not a fork of aimtux yet still also shows the same issues.

The issue is similar to this issue: https://github.com/HackerPolice/MissedIT/issues/23

Once injected, I feel the overlay is synced to the display refresh rate. In my case 240 or 144. I tried both. When playing at high frame rates, the overlay has issues. I have experienced this same issue with a frame locked java overlay in the past. This was solved by first removing the frame limit of the opengl overlay then later implementing a frame cap.

Im not too well versed in how the window is drawn but perhaps looking into documentation around swap interval may help. Heres some brief info here https://wiki.libsdl.org/SDL_GL_SetSwapInterval. swapinterval defaults to (1) from sources on stackoverflow.

I discussed with the guys over at gamesneeze discord, I went there first as this was the first app I tried that didnt appear to be a fork of aimtux that still presented the issue. At the time they had the newest commit to any csgo linux app. The issue is there with the imgui overlay too and there is implentations of sdl swap window in the code.

This isnt a hardware or config issue, I assure you Ive tweaked my gpu and setup to cater perfectly to hardware, removed any I/O, balance or scheduler issues and material config. Tried multiple kernels. Tried multiple graphical setups. Various distros. Outside of mainipulating the source Ive spent 8 hours to faultfinding an issue with my system, The issue is not present when not injected. Infact the frametiming beats windows, even with the opengl to dx layer, I definately click more heads in distros for sure. (5800x/3080, Manjaro)

Ive tried injecting the library multiple ways to remove any chance of an overhead from GDB or aixees load script. Tried manipulating OpenGL vsync even further with libstrangle. No dice.

Ive gone to some efforts to rule out any other issue it could be to avoid wasting your time. I was happy to find the issue reported by at least one person, so I opted to post the issue here, however this is an issue will all aimtux forks currently available.

I imagine linux being primarly used on lesser hardware in the CSGO user space which inturn has allowed this issue to remain undiscovered. I currently push 700 frames at native resolutions, something the average user isnt pushing.

I doubt this will be fixed, but im willing to donate some time to test builds if any progress is made. At the very least this can serve as some insight to anyone else facing this issue. If you are - dont waste your time trying to fix your system.

Thanks for your time.

dweee commented 2 years ago

I highly encourage you to post this on LWSS/Fuzion or seksea/gamesneeze as I doubt Pritam even knows what month it is and I'm pretty sure any devs check here.

tutoraddicts commented 2 years ago

This isnt a hardware or config issue, I assure you Ive tweaked my gpu and setup to cater perfectly to hardware, removed any I/O, balance or scheduler issues and material config. Tried multiple kernels. Tried multiple graphical setups. Various

I got you what you mean by that. Definitely, it is an issue But not sure it is fixable Because most likely It is due to how Imgui/OpenGl is rendering the stuff in game.

tutoraddicts commented 2 years ago

I highly encourage you to post this on LWSS/Fuzion or seksea/gamesneeze as I doubt Pritam even knows what month it is and I'm pretty sure any devs check here.

I work in Accenture and rarely have time now, to look over. And also working on C++ Web Framework, So that's why.

dev5tar commented 2 years ago

thanks for the response. much appreciated.