one potential culprit I found is the blood particles
the collision check was too precise
and there were simple too many of them
I'm about to upload a new version - hopefully this will at least ease the slowdowns 🤔
I should also mention, that my slow downs could be due to having the game on my external hard drive, its a very good one but i thought i might mention it anyway just in case, i might stick it over on my HDD or M.2 stick, when i record E4 just to see if that is something that could be doing it. and if running it on SSD helped eliminate those random slow downs abnessor, let me know :D
With "stats" enabled I noticed periodical spikes >16ms for swap, and especially while electrocut someone on screen. (It's fun on RTX2060, but unfortunately, I don't have more potato, but 3d playable PC at current time)
It's gone if I disable vsync.
And even more fun: if i switch auto-fps(but still 60, I don't known what mean auto in this section) and vsync on/off multiple times, sometime swap consumes >14ms constantly.
I think I must walkthrough w/o vsync and try to catch freezes(if it still exists), but i have lack of time to it before weekend.
the 'auto' setting just means to skip frames if it takes too much time to draw them
swap is just for the buffer swap time (I pretty much just measure how long the windows SwapBuffers command takes)
unfortunately it's dependent on windows and nearly impossible to sync at 60fps
the workaround right now is to start without vsync in fullscreen and hope that the triple buffering on the gpu kicks in
(which there is no control over - it's all up to the gpu driver)
so don't worry about this one: I know the cause but i yet to find a solution (apart from making 30fps the default) 😔