Re: [hatari-devel] Show FPS in statusbar?

[ Thread Index | Date Index | More Archives ]

On Thu, Jan 4, 2018 at 10:18 AM, Nicolas Pomarède <npomarede@xxxxxxxxxxxx> wrote:
Le 04/01/2018 à 08:45, Christer Solskogen a écrit :
Could that be added, please. Or somewhere else, but it looks to me that there's is enough space to have it there.


it depends on what you call FPS ; if that's just displaying refresh rate, it's already there at the bottom of the screen.

But if that's trying to estimate how many different frames are really drawn by second, then it's not that trivial. Some parts of the screen can be updated at 50 Hz (for example a text scroller in the bottom of the screen) while rest of the screen is updated at 25 FPS (for example a 3D object).
Then, we need to take the lowest value of the whole screen to estimate the FPS. Doing so could require to analyze the whole screen on every frame, which could slow down emulation a lot ; or pick for example 10 random spots on the screen (think like how auto focus work in digital camera) and do some stats.

Pardon my ignorance, but why can't a 3d object (in theory) be running at 50?
And yes, stats is the main thing here. I don't think it should be enabled by default.
I would love do to some performance testing SDL1 vs. SDL2 on different platforms (and different SDL drivers)

It's something I already thought some months ago, I'm planning to add it later once a new release is made.

Great! \o/

Mail converted by MHonArc 2.6.19+