Log In  

Wondering if this is a bug or if I'm being stupid about something. I was running some performance tests for a memory paging technique I'm hoping to use, and I noticed when I switch away from the window and then activate the window again it doesn't go back to 60 FPS after going down to 30.

If I call the map command less times or comment it out entirely it does go back up to 60, but if it's a performance issue then why would the cart start at 60 FPS so long as it stays focussed? Wouldn't it start at 30 too? I even tried doing an HTML export and that has the same issue when switching tabs back and forth.

Cart #56081 | 2018-09-02 | Code ▽ | Embed ▽ | No License

P#56082 2018-09-02 18:35 ( Edited 2018-09-03 18:44)

:: dw817

It says 60 here. Hasn't changed. Even brought up Notepad to put on top to see how it reacts to not being in focus.

Maintains 60fps here.

P#56085 2018-09-02 22:53 ( Edited 2018-09-03 02:53)
:: Eniko

Weird, it happens every time on my system. O_o Now if I bring up the pause menu, alt+tab out, then alt+tab back in and close the menu it stays 60 FPS, so I still think there's something weird going on here that might be a bug.

P#56097 2018-09-03 00:40 ( Edited 2018-09-03 04:40)
:: dw817

Eniko, I tested it only Online in Lexaloffle. Let me try in the IDE itself.

Ah, there it is. It went down to 30. Looked up STAT(7) you are using, that shows framerate.

Ok, try this. Write your own framerate generator. See if it matches STAT(7).

Also, try STAT(7) in other games by other people - see if it drops to 30 as well.

P#56110 2018-09-03 11:57 ( Edited 2018-09-03 15:57)

This seems more like a bug in stat(7) to me.

Printing out stat(1) shows that the cpu usage is about 1.7x over budget for a frame at 60fps, so stat(7) should really be returning 30 here.

P#56116 2018-09-03 14:44 ( Edited 2018-09-03 18:45)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-04-19 12:06 | 0.023s | 4194k | Q:33