Comments (3)
Interesting. This command line uses -fast without -accurate, which uses a different paint path.
I think this might be a simple-ish fix: in video_paint_timer_fired(), if you move the line "p_video->has_paint_timer_triggered = 1;" outside of all "if" statements, does that work without any side-effects?
from beebjit.
(Also, it should in theory be possible to remove the -cycles command line parameter and rely on the -exit-on-max-frames to handle the exit.)
from beebjit.
I think this might be a simple-ish fix: in video_paint_timer_fired(), if you move the line "p_video->has_paint_timer_triggered = 1;" outside of all "if" statements, does that work without any side-effects?
It fixes my reduced testcase and my original testcase and it doesn't break BBCMicroBot's testsuite (though that's not all that thorough - for example, it doesn't currently test "clapperboard" mode, so didn't catch this breakage).
It looks like it probably doesn't make a difference exactly where this line gets moved to, but FWIW this is the exact patch I tested with:
diff --git a/video.c b/video.c
index 01c7d7e6..0245b052 100644
--- a/video.c
+++ b/video.c
@@ -1259,12 +1259,12 @@ video_paint_timer_fired(void* p) {
timing_get_total_timer_ticks(p_video->p_timing));
}
+ p_video->has_paint_timer_triggered = 1;
if (!p_video->externally_clocked) {
/* For accurate mode, this triggers the start of painting, and paint will
* occur at the usual 50Hz virtual time.
*/
if (timing_timer_is_running(p_timing, timer_id)) {
- p_video->has_paint_timer_triggered = 1;
video_wall_time_vsync_hit(p_video);
/* A bunch of unconsumed framing changes will have built up. Clear the
* the flag so the screen isn't immediately cleared after the first paint.
from beebjit.
Related Issues (20)
- some ALSA issue stopping beebjit from running HOT 2
- First frame sometimes renders incorrectly with -opt video:paint-start-cycles HOT 1
- compilation problem - arm64 issue? HOT 1
- Compile failure with gcc 11.1 HOT 2
- Feature Request - Toggle or Colour Surrounding Screen HOT 6
- Feature Request - Call Stack
- clocksp broken on bbcmic.ro in rocket mode HOT 1
- Additional teletest cases HOT 1
- Incorrect separated graphics teletext chars HOT 1
- Sounds on Depeche mode demo is broken HOT 1
- LinearTTX test issue HOT 10
- Left SHIFT key on Mac HOT 8
- Mac version sometimes fails to start HOT 10
- Sideways RAM not initialised HOT 2
- Build issue with gcc 12.1 ( potential uninitialised variable )
- Feature Request - Memory Labels in debugger
- MODE 7 with 6845 skew vs -opt video:border-chars=0 HOT 7
- MakeUEF 2.4 8e1 8o1 Parity HOT 2
- Home Key crashes emulator HOT 2
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 beebjit.