27 December 2022, 10:08 | #1 |
Registered User
Join Date: Dec 2022
Location: Nottinghamshire, UK
Posts: 18
|
Frame counter in Blitz
Has anyone done an FPS counter in Blitz? I've got quite a bit of slowdown all of a sudden and am interested to see what frame rate I'm getting.
|
27 December 2022, 13:52 | #2 |
Gets there in the end...
Join Date: Sep 2005
Location: Wales
Posts: 862
|
You could increment a variable every vwait and 2nd variable within a SetInt 5 then compare the 2 when the 2nd counter hits 50 (or 60 if NTSC) then reset both?
|
27 December 2022, 14:55 | #3 |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 615
|
Agree.
Or in a similar way: Increment a framecounter variable each frame. And in the VBlank interrupt check if it is one higher than the last time you checked. Last edited by Nightshft; 28 December 2022 at 01:59. |
27 December 2022, 21:40 | #4 |
Registered User
Join Date: Dec 2022
Location: Nottinghamshire, UK
Posts: 18
|
Thanks for that, I'll give it a whirl. It's going to take me a few more reads of the manual for it all to stick.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
dbra to handle long counter | Geijer | Coders. Asm / Hardware | 11 | 27 November 2020 10:50 |
Step frame-by-frame? | pushead | support.WinUAE | 2 | 06 June 2020 07:46 |
Pause emu and move frame by frame? | hexaae | support.WinUAE | 3 | 27 October 2019 01:18 |
Address pointers with Program Counter | Lonewolf10 | Coders. Asm / Hardware | 8 | 27 October 2015 11:40 |
Program Counter with Offset - why? | Jherek Carnelia | Coders. General | 26 | 21 March 2011 10:49 |
|
|