IView update rate vs actual FPS
Hi!
We use separate threads for render and update and I was thinking about an efficient way to ensure that update rate doesn't go ahead or fall behind the actual FPS.
I see that https://www.noesisengine.com/docs/Gui.C ... orial.html has a note:
Is this part of documentation obsolete or maybe I misunderstand it?
In any case it is not that important, I'll find a proper way to keep rates in sync, but I just got curious about how it is supposed to work.
We use separate threads for render and update and I was thinking about an efficient way to ensure that update rate doesn't go ahead or fall behind the actual FPS.
I see that https://www.noesisengine.com/docs/Gui.C ... orial.html has a note:
However I don't observe this behavior, it looks like view->Update can be called tens of thousands times if I make the render thread slow enough. The docs don't tell exact numbers, but I didn't expect it to be that many.'Update' will block if it is invoked many times without the corresponding 'UpdateRenderTree' call in the render thread
Is this part of documentation obsolete or maybe I misunderstand it?
In any case it is not that important, I'll find a proper way to keep rates in sync, but I just got curious about how it is supposed to work.
Re: IView update rate vs actual FPS
Unfortunately, the documentation is obsolete regarding that detail. I am sorry about it.
In Noesis 3.0 we added that behavior to View::Update (blocking after a few frames without the corresponding render) but this was causing many problems to clients in very specific moments (for example jumping from one scene to another) and we decided to avoid it in 3.1 (If I remember correctly).
You need to manually keep rates in sync, I will fix the documentation, thanks for the feedback!
In Noesis 3.0 we added that behavior to View::Update (blocking after a few frames without the corresponding render) but this was causing many problems to clients in very specific moments (for example jumping from one scene to another) and we decided to avoid it in 3.1 (If I remember correctly).
You need to manually keep rates in sync, I will fix the documentation, thanks for the feedback!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests