PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

I want to prevent back buffer flipping. Can I do that?

Hi.

I've got the next situation.
Correctness of my part of code that handles logic depends very much on fps number. But visual output part will be satisfied with 30 fps.

So can I, for example, set maxfps to 100, but output to back buffer and flip it every third frame, to get 33 visual fps and 100fps for logic? Or maybe there are some other methods to do such trick in EdgeLib?
Hi Nomad,

You can do manual flipping by adding the following flags to the EDGELIB configuration (inside OnFrameworkConfig):

Code:

config->flags |= EFL_MANUALFLIP;


Then you can flip yourself by calling display->Flip() every third frame.
Thank you very much for your answer, I should have seen this in documentation . :?