Skip to content

Add a Long Sleep VSync option #19

Description

@lexkrstn

Hi!
First of all, I really like the idea of this tool!
I've already tried it on some old games that I used to enjoy decades ago.

And it works! But my hope was to prevent extensive usage of CPU which cycles was wasted rendering thousands of redundant FPS and thus heating up my laptop. Sadly, limiting FPS now doesn't do the job.

So my question is, is it possible to add a new VSync option that would save CPU cycles?

I looked into the current implementation of FrameLimiter and there was a Sleep(1) in a while-loop that suspended frame swapping. Have you tried it like Sleep(1000 / FPS - elapsed_ms)? I'm guessing it's not as accurate, but it seems to be more efficient way in terms of CPU consumption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions