CPCWiki forum

General Category => Programming => Topic started by: IndyUK on 00:21, 27 December 23

Title: FPS Counter
Post by: IndyUK on 00:21, 27 December 23
Hi All,

Hope you're all doing well. During the run up to and during Christmas I've been doing my usual tinkering around with WinApe and managed to build a FPS counter. Ever since I saw something similar in CPCTelera I always wanted to create one myself. I've included a YouTube video of it. The first version of this used the firmware call to print the FPS value but, I noticed that as there were multiple calls to this (for each digit) that attributed to almost 12us of time, which I'm sure knocked a few FPS off. I then decided to scrap the &BB5A call and instead put together my own mini bitmap font and use that. That roughly reclaimed ~20fps taking it from ~140 to ~169. Anyway, the video is attached if you fancy taking a look. FYI - The first part shows unrestricted and the second with vsync enabled.

Thanks

Title: Re: FPS Counter
Post by: Brocky on 17:41, 12 February 24
any chance of getting the code for this please?
Title: Re: FPS Counter
Post by: IndyUK on 21:30, 16 February 24
Quote from: Brocky on 17:41, 12 February 24any chance of getting the code for this please?
Hi,

Sorry, I've been rather busy with a work project and haven't had time to do anything else. I'll see what I can do over this weekend. Do you want it with my custom font or shall I strip that and use the standard inbuilt CPC font?

Powered by SMFPacks Menu Editor Mod