News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

FPS Counter

Started by IndyUK, 00:21, 27 December 23

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IndyUK

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


Brocky

any chance of getting the code for this please?

IndyUK

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