Repository navigation
Conversation
This patch directly fixed a rendering issue I had, where I would suppose frames were encoded to the video per CEngine::Frame instead of when a frame is rendered, resulting in an incosistently timed slow video.
There was a problem hiding this comment.
Change PR title to start with "fix: ...".
I'm curious, why now? Probably after GPU rendering support? It doesn't make sense that a small resolution would trigger this imo.
@SirObby do you have an NVIDIA GPU?
EDIT: saw the thread, I got nothing lol.
|
@pektezol yes I have an NVIDIA GPU. I submitted this now because now is when I got the fix, this issue has persisted for me many months. |
|
@SirObby I meant why the slowdown thing happened after all these years but I guess it's not even recent and it happened to Bets (and possibly many more people) too. The fix looks simple, hope it doesn't cause a regression heh. |
|
From what I gather, is that the engine's Frame function happens more often than an actual frame is rendered. My guess is that a frame is encoded into the video, in these engine frames, even when a frame has not been rendered to the screen. Causing it to get a lot of duplicate frames. |
|
Maybe turning vsync on helps this too. |
I had encountered an issue where the video itself is inconsistently timed, i.e. is slow in some parts.
This patch directly fixed a rendering issue I had, where I would suppose frames were encoded to the video per CEngine::Frame instead of when a frame is rendered, resulting in an incosistently timed slow video.
AI disclosure is that I used Codex GPT 6.1-Sol to find this issue, I wrote this PR entirely myself.
I also had Codex make this side by side comparison to show what this PR fixes.
render-timing-comparison.mp4
The reason that I encountered this problem rather than our beloved SAR developer homies, is that the resolution in this is is 256x192 and the render itself takes like 2 seconds to render ingame, that is probably what lead to the bug to appear so prominently.