Code Monkey home page Code Monkey logo

zx_fps_counter's Introduction

zx_fps_counter

by Arda Erdikmen

A cycle exact frame number counter to test emulator render performance

Requires Sinclair Zx Spectrum computer with at least 48kb memory (or equivalent emulator).

Compile and create a loadable tape file with pasmo: pasmo.exe -v --tapbas fpscounter2.asm fpscounterout2.tap

There are two different versions. The screenshot shows the second one. Below image is a 50fps gif image.

Fps Counter Screenshot

it shoud look like this. (if your computer/browser cannot play 50fps gif, it should flicker and you should see red/green borders and other visual artifacts etc.)

How to use?

Borders:

upper part of the border should switch colors according to zx spectrum series, black to white. lower part of border should switch between red and yellow, producing a shade of orange/yellow colour. If you see a red or green border, your emulator skips frames.

Following image shows the two frames blended. The border and lower part of image should look like this. Blended Image

Bitmap:

Topmost part of screen shows frame number, 1 to 50. Middle part of screen shows short horizontal lines, switching position. They should look like grayish long horizontal line. If you sense they are moving through a direction, your emulator might skip frames. Bottom part of screen shows alternating checker pattern. If you see any kind of flashing at that area, it's a frame skip.

Video Test

Best way to test your emulator is with using a hi-framerate video recorder. Use your smartphone's slow-mo 240fps recorder. Record a couple of seconds of footage. Watch and observe your emulator performance.

zx_fps_counter's People

Contributors

ref-xx avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.