captainys / TOWNSEMU

FM Towns Emulator "Tsugaru"
BSD 3-Clause "New" or "Revised" License
247 stars 18 forks source link

NextVSYNCTime does not always return greater value than parameter #17

Closed pinterior closed 3 years ago

pinterior commented 3 years ago

https://github.com/captainys/TOWNSEMU/blob/b31d47286102e1731188ef7c366cd6999097926c/src/towns/crtc/crtc.h#L314-L316 https://github.com/captainys/TOWNSEMU/blob/b31d47286102e1731188ef7c366cd6999097926c/src/towns/crtc/crtc.h#L325-L331

If CRT_VERTICAL_DURATION <= townsTime % VSYNC_CYCLE, the return value will be less than or equal to given townsTime. Is this an expected behavior?

captainys commented 3 years ago

No, it's not intended. I'm going to merge it if you submit a pull-request. Thank you for finding it!

pinterior commented 3 years ago

I'll make a change on PR for double-buffered sprite. (for program watching PAGE bit on 044ch)