EDIT: Loading time also improved with separate mod
EDIT 2: You must register for the forum to see attachments on posts (and download them)
The CPU mod can be downloaded here
https://github.com/aronson/SDL-1.2/releasesThe "GPU" mod can be downloaded here
https://github.com/aronson/sdl12-compat/releasesHello fellow Cogminders, would you like to get anywhere between 20-400+% measurable FPS speedups on your machine?
I can make Cogmind draw on your screen faster (FPS++)!I have found the source code to and made numerous modifications to the SDL.dll file powering the graphics for the game.
Are you running on an older/slower machine, Wine on Linux, or macOS?Or might you be streaming Cogmind on Twitch.tv or recording it with a program like OBS or even the built-in Windows recording feature for games?
Do you have a computer that chugs a little bit now and then when you pan the map with shift and mouse aggressively? If it lags in this situation, it probably lags in other situations too. One that comes to mind is those beautiful win animations -- you rarely see them, but on WINE on regular ol' Linux you might have a 15 FPS experience as you hit that lovely high note if you have a computer from around 2014, not 2022, and you have your own reasons for not running Windows.
One can display an FPS counter with Ctrl+F3 in the titlebar and above your core to track FPS as you play, if you feel it's lagging a little bit compared to other video games on your machine.
If any of these situations apply to you, I highly suggest you try out my experimental builds of the Simple DirectMedia Library (SDL) attached to these posts with your copy of Cogmind. You can unzip these files and drop the DLLs contained within next to Cogmind. Note, this will overwrite your original files! Please either rename them to something like SDL.dll.bak
first so you can restore them later, or you can click "validate local files" in Steam through the game's properties to return to the official Cogmind CPU renderer.
Please do not run random DLLs off the internetAfter half a decade working as a cybersecurity engineer in network forensic analysis for a US department of defense contractor, I urge you, do not run binary files like DLL's and EXE's from sources you don't trust.
Source code is linked here
CPU mod:
https://github.com/aronson/SDL-1.2"GPU" mod:
https://github.com/aronson/sdl12-compat https://github.com/aronson/SDL/tree/cog-sdl2Original sources provided by Kyzrati:
https://www.gridsagegames.com/forums/index.php?topic=1566Don't report new bugs to Kyz if you use thisI'm very interested in new bugs, but if you use this who knows what will happen. I have a pretty good idea -- massive speedups for a lot of use-cases that are outside of Cogmind but make sense in 2022 when we are running operating systems with multi-tasking. If something weird happens, restore the old DLLs and try it again first. If you see a difference, great, feel free to let me know and I'll see what I can do
If you don't see a difference and it's buggy, well, nothing to do with me!
There is a memory leak of like a few bytes, that's why it's in the archive name. It doesn't compound unless you change the window size or borderless fullscreen/etc. setting as far as I understand, but I have not yet fixed it.