24 May 2023, 02:42 | #1 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,068
|
feature request: frame counter
Super simple frame counter, incremented every time the emulator starts working on a new frame. Interfaced via debugger command, if issued without a parameter it prints the current value, with a parameter it sets the counter to specified value.
Not sure if something similar exists, so here it is. The idea behind it is to have an easy and reliable "timer" support when fixing old demos/games (that require specific timing to work properly and/or prevent them going out of sync) to work from HD and on super fast systems like PiStorm. |
24 May 2023, 15:37 | #2 |
German Translator
Join Date: Aug 2018
Location: Drübeck / Germany
Age: 49
Posts: 200
|
There is a frame counter implemented in WinUAE-debugger.
You get the value with the >c command. If you want go one frame forward you can use the fs-command. ; fs <lines to wait> | <vpos> <hpos> Wait n scanlines/position. Code:
>c DMACON: 23a0 INTENA: 0000 (0000) INTREQ: 0028 (0028) VPOS: 69 HPOS: 3 ... Average frame time: 29292.38 ms [frames: 13535 time: 396472328] >fs 313 ... >c ... DMACON: 23a0 INTENA: 0000 (0000) INTREQ: 0028 (0028) VPOS: 69 HPOS: 3 ... Average frame time: 39983.75 ms [frames: 13536 time: 541220004] > |
24 May 2023, 16:54 | #3 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,068
|
OK, that works. Thanks! Would be nice to be able to reset it, though.
|
24 May 2023, 21:15 | #4 |
German Translator
Join Date: Aug 2018
Location: Drübeck / Germany
Age: 49
Posts: 200
|
frame and scanlinecounter could be interesting:
my idea: >fsc frame and scanline counter enabled >fsco frame and scanline counter disabled frame and scanline counter if enabled: 227*313=71051 = 1 frame Code:
>t Cycles: 5 Chip, 10 CPU. (V=105 H=6 -> V=105 H=11) ; (does not fit for the example) framecounter=0.18219863 scanlines=57,0 ; this line is added if >fsc is set VPOS: 105 ($069) HPOS: 011 ($00b) COP: $0006f010 D0 F0DC005A D1 000200B6 D2 0000000F D3 000000ED D4 0000001F D5 00000000 D6 00000000 D7 00000000 A0 00028687 A1 0006F0DC A2 00000000 A3 00000000 A4 00000000 A5 00000000 A6 00C028F6 A7 00C609C0 USP 00C609C0 ISP 00C619C0 SR=0011 T=00 S=0 M=0 X=1 N=0 Z=0 V=0 C=1 IM=0 STP=0 Prefetch 0c39 (CMP) 00ff (ILLEGAL) Chip latch 00000000 00028456 0c39 00ff 00df f006 cmp.b #$ff,$00dff006 Next PC: 0002845e > Last edited by Rock'n Roll; 24 March 2024 at 21:40. Reason: correction |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frame counter in Blitz | LateBit | Coders. Blitz Basic | 3 | 27 December 2022 21:40 |
Rendering of a frame feature | kamelito | support.WinUAE | 0 | 14 May 2021 14:11 |
Feature Request | Zilog | support.WinUAE | 2 | 07 October 2020 17:59 |
Feature request | Galahad/FLT | request.UAE Wishlist | 4 | 21 February 2019 23:04 |
Feature request | Fackamato | support.WinUAE | 48 | 26 February 2004 17:23 |
|
|