Comments (1)
Apologies for the late reply. I've had similar issues with my Pico ZX81 emulator (https://github.com/ikjordan/picozx81)
The approach I took was:
- To run with a 50Hz system interrupt, but keep the display refresh at 60Hz.
- I use triple memory buffers for the display (easier on memory in black and white!). With double buffering there were rare cases of the emulator code zeroing the swapped buffer whilst it was still to be processed in the scanline buffers
- When the ZX81 emulator code has generated a full display the buffer is immediately used by the VGA or DVI scanline routines. This ensures minimal lag, but can result in some tearing if the display is rapidly scrolling.
- I use an AY emulator that stores timestamped AY register changes triggered during the frame and then uses those changes to create a sound frame when the display is swapped into the scanline. This is my attempt to keep sound and display in sync, and also to avoid jitter in the sound due to variations in compute time for the Z80 and ULA emulators.
- The 50Hz interrupt was derived from the PWM or I2S sound interrupt rate
Incidentally, many thanks to @fruit-bat for inspiring me to start the ZX81 emulator, and for the usb hub code :-)
from pico-zxspectrum.
Related Issues (20)
- PicoMiteVGA-To Enable STEM Project HOT 17
- LED HOT 11
- Kemston joystick not working in AUK firmware HOT 12
- Sinclair Joystick Type HOT 7
- Pre-build question: Can audio input work with Pimoroni? HOT 2
- Quick Save Function ZxSpectrumPicomputerVgaAukBob HOT 3
- USB touchpad as a joystick? HOT 1
- Audio over HDMI? HOT 31
- Problem loading games - EDIT: Solved HOT 10
- Are these implementations cycle-accurate? HOT 1
- Help for Keyboard Matrix pinout for support full 48+ keyboard HOT 8
- mirrored text on lcd HOT 19
- I have a PicoZXpi board that I am sure is based on this firmware and Ringo does not work correctly HOT 8
- Pimoroni DV Screen Size & Refresh Rate HOT 2
- Will the Waveshare RP2040-PiZero be compatible? HOT 29
- Ability to save to .tap file HOT 14
- SD Card not detected HOT 6
- Could be used USB joystick/gamepad in the emulator menu? HOT 2
- Cursor key joystick issues HOT 4
- BOM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pico-zxspectrum.