Page 1 of 2

XRoar - Windows 10 64-bit

Posted: Sun Jan 08, 2017 10:35 pm
by Bosco
When I'm developing I tend to use emulation most of the time but have noticed XRoar, (running under Windows 10 64-bit), doesn't provide as smooth a framerate as VCC and MESS.

I usually test on a virtual Coco 2 to ensure I'm not dropping frames at 60Hz and in the past XRoar emulating an NTSC machine on a 60Hz LCD display has delivered silky smooth scrolling etc.

So my question is, does anyone else run XRoar under Win 10 and have you noticed the framerate being slightly `choppy', (Flagon Bird is a good game to test with)?

Is there something I need to add to xroar.conf?

Re: XRoar - Windows 10 64-bit

Posted: Mon Jan 09, 2017 9:53 pm
by sixxie
I've noticed some oddities myself: strange pauses (using the GTK+ interface), far more than a frame. I'd wondered if it was something to do with my laptop... Maybe I should go back & see if it's the same with previous versions.

TBH I never expected it to be spot on, as timing is all based around the audio rate, not the frame rate - and there's bound to be some slight mismatch there that accumulates error over time leading to an occasional stutter, even emulating a 60Hz machine on a 60Hz display. But there does seem to be something else up now - just not terribly predictable!

I should probably finally get around to resampling the audio output based on the actual framerate; that might sort out a few things.

Re: XRoar - Windows 10 64-bit

Posted: Tue Jan 10, 2017 12:09 am
by Bosco
It does seem like something that's crept in, maybe in the last couple of releases, I'm not entirely sure?

I'd describe what I'm seeing as continual flicking between 60 and 30 fps, kind of how 50Hz update used to look on my 60Hz display. 60Hz update used to be pretty solid.

I'll run a comparison with older versions of XRoar and post my findings.

Re: XRoar - Windows 10 64-bit

Posted: Tue Jan 10, 2017 2:38 pm
by Bosco
Had a very quick play over lunch using the scroll effect on Flagon Bird's front end running on a CoCo 2 as the test.

XRoar 0.33.1 was able to produce a smooth 60 fps scroll in sync with the game albeit not continually. Back on Windows 7 I used to click the XRoar window title bar when update became choppy to get it running smoothly again but that doesn't appear to have any effect under Windows 10. I did notice under Win 10 if I left XRoar running long enough it would eventually become smooth without my interference.

XRoar 0.34 was not able to produce a smooth 60fps scroll, at least not in an equivalent time frame to the above test.

Don't know if this helps?

Re: XRoar - Windows 10 64-bit

Posted: Tue Jan 10, 2017 3:36 pm
by sixxie
Hmm, 0.34 brought SDL2 support, which I've preferred for the Windows builds, as previously it was far too dependent on users having up to date OpenGL drivers. SDL2 abstracts both OpenGL and DirectX in a uniform fashion, so more users end up with a working emulator (the giveaway was it starting with a black screen, as the sub-par OpenGL drivers on their system didn't support such basic things as textures...).

I wonder if I'm missing something in how I'm using the SDL2 API. Seems unlikely as it's so simple, but I'll give it a look at some point.

Doesn't explain my occasional pauses (actual noticeable pauses, not just choppiness) under Linux using GTK+ and GtkGLExt though!

Re: XRoar - Windows 10 64-bit

Posted: Tue Jan 10, 2017 9:12 pm
by Bosco
Well, if something can be done to smooth out frame rate, that'd be great. :D

But don't feel you have to spend time on this though if you have bigger fish to fry. I may be the only person who's noticed. :)

Re: XRoar - Windows 10 64-bit

Posted: Sun Jan 22, 2017 7:54 pm
by sixxie
I'm hoping the recent snapshot helps a bit.

It updates the sound just before VSYNC, like 0.33 did. Doesn't fix my problem - but then I seem to have more fundamental issues.

Re: XRoar - Windows 10 64-bit

Posted: Mon Jan 23, 2017 2:21 pm
by Bosco
Cool. Looking forward to giving it a test when I finish work. :)

Re: XRoar - Windows 10 64-bit

Posted: Mon Jan 23, 2017 10:10 pm
by Bosco
Works like a charm.

Pixel scrolling is silky smooth!

Huge thanks Ciaran. :D :D :D

Re: XRoar - Windows 10 64-bit

Posted: Thu Mar 29, 2018 3:25 pm
by geirhovland
xroar 0.34.8 crashes under Windows 10 when doing the following: 1) Full screen mode, 2) Minimize screen using ALT+TAB, 3) Clicking the xroar icon on the taskbar.