English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 27 December 2022, 10:08   #1
LateBit
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.
LateBit is offline  
Old 27 December 2022, 13:52   #2
Coagulus
Gets there in the end...
 
Coagulus's Avatar
 
Join Date: Sep 2005
Location: Wales
Posts: 862
Quote:
Originally Posted by AmigaBillsSon View Post
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.
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?
Coagulus is offline  
Old 27 December 2022, 14:55   #3
Nightshft
Registered User
 
Nightshft's Avatar
 
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.
Nightshft is offline  
Old 27 December 2022, 21:40   #4
LateBit
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.
LateBit is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:04.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.18583 seconds with 13 queries