English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 11 December 2011, 21:22   #21
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Thanks. Answered in moonstone thread.
Toni Wilen is offline  
Old 11 December 2011, 22:12   #22
Dr.Venom
Registered User
 
Join Date: Jul 2008
Location: Netherlands
Posts: 485
Quote:
Originally Posted by Toni Wilen View Post
Beta 3:

http://www.winuae.net/files/b/winuae_2400b3.zip

Long waited fastest possible CPU vsync is here! Maybe.

- Experimental new vsync mode for fastest possible/JIT CPU modes. Tested using WHDLoad demos and games.
Awesome . First impressions are that it is working very well. Workbench stuff is working really fast, and most whdload games and demos run without problems. Specific cool things: Just ran the TBL - Starstruck demo and it's running really very very smoothly... . End scroller part of Big Time Sensuality by Axis is also flawless.

Quote:
* - This mode is currently buffered, used to hide horrible tearing (flip timing is much more complex if fastest possible CPU), will be hopefully improved later.
Hopefully that's possible, as the latency introduced is very noticable for faster games (like eg Pinball Dreams..) when compared to the unbuffered cycle exact mode.

Quote:
* - Sound pitch changes possible, this also needs some improving later.
Only noticable sound issue I found up till now is the WHDLoad version of Jim Power, where the high pitched sound of your bullet hitting enemies is off-pitch in fastest possible mode. Running the same config with only changing 'fastest possible' mode to 'cycle exact' mode the sound is OK.
Dr.Venom is offline  
Old 11 December 2011, 23:12   #23
Steve
I Identify as an Ewok
 
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
I tried WHDLoad Breathless and it completely crawled. Tried windowed mode and it worked better until I made the window larger to see the display, then it crawled.

Quick question that probably isn't beta related. What has happened to keyboard input?? Is it broken? Why do I have to select 'Game Ports Panel' in the Input section to get the keyboard working again, thus losing my custom configured game pad settings? What has happened? Is it like this by design now??

Tried with standard non-JIT low-latency fs config and received mixed results with this beta compared to the last version. CPU usage is now 90-100% compared with 40-50% in the previous official release. Has my CPU fan whirling round like a banshee. Setting JIT makes no real difference although if I also switch on the fastest possible mode then it really slows down and CPU usage is upto 150%. Is this because it is just a debug executable or maybe somthing else?

Last edited by Steve; 12 December 2011 at 02:59.
Steve is offline  
Old 12 December 2011, 03:43   #24
msayed1977
Better than the Original
 
msayed1977's Avatar
 
Join Date: May 2008
Location: Cairo, Egypt
Posts: 152
Quote:
- Mode switching can leave old graphics garbage, this will be fixed later.
Please don't forget to fix very soon.
msayed1977 is offline  
Old 12 December 2011, 08:40   #25
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Quick question that probably isn't beta related.
Do a quick test first before deciding if it is or not beta related..

Quote:
Tried with standard non-JIT low-latency fs config and received mixed results with this beta compared to the last version. CPU usage is now 90-100% compared with 40-50% in the previous official release. Has my CPU fan whirling round like a banshee. Setting JIT makes no real difference although if I also switch on the fastest possible mode then it really slows down and CPU usage is upto 150%. Is this because it is just a debug executable or maybe somthing else?
Non-fastest CPU modes should be the same, perhaps something got broken.

Fastest possible or JIT vsync requires much more CPU power. Perhaps even a triple/quad core CPU so that both main UAE thread and vblank thread get near 100% CPU time. Unfortunately there really isn't any other way to make JIT+vsync to work perfectly. Fastest possible without JIT can work (it did in b2, this beta uses new mode for both. Future versions may have an option).

I tested this on my laptop and it didn't seem to cause any more fan sound than normal fastest possible CPU mode. Buy a better cooler or PC

Whats your hardware specs?

Quote:
Please don't forget to fix very soon.
It should be fixed. You sure you aren't confusing this with buggy programs with missing blitter waits? These commonly cause random crap if emulation configuration isn't exact enough.
Toni Wilen is offline  
Old 12 December 2011, 09:28   #26
Steve
I Identify as an Ewok
 
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
No it wasn't beta related. Stilll weird though.

Dual Core Pentium 2.13Ghz. Geforce 9800GTX+, 2GB RAM, 750watt PSU. No extra cooling systems!
Steve is offline  
Old 12 December 2011, 17:08   #27
Dr.Venom
Registered User
 
Join Date: Jul 2008
Location: Netherlands
Posts: 485
Quote:
Originally Posted by Steve View Post
I tried WHDLoad Breathless and it completely crawled. Tried windowed mode and it worked better until I made the window larger to see the display, then it crawled.
FWIW (this isn't to say there isn't an issue with the beta), but I can't confirm this slowdown on my setup. Breathless runs mostly smoothly in full-screen mode up to the largest screen/window setting within Breathless config.

Quote:
Tried with standard non-JIT low-latency fs config and received mixed results with this beta compared to the last version. CPU usage is now 90-100% compared with 40-50% in the previous official release.
Can't confirm this either. Both B2 and B3 consume about 40% CPU (as shown by the onscreen LED) on my setup when using non-fastest CPU modes, much the same as the previous official release. When using fastest possible, both B2 and B3 show onscreen leds at 100% cpu usage. Are you sure you didn't accidentally compare a fastest possible with a non-fastest possible config?

Quote:
Has my CPU fan whirling round like a banshee. Setting JIT makes no real difference although if I also switch on the fastest possible mode then it really slows down and CPU usage is upto 150%. Is this because it is just a debug executable or maybe somthing else?
When comparing non-fastest (cycle-exact) to fastest mode my CPU fan will also make more noise, but to me that's normal since the CPU is stretched more. Also in my setup there's no difference in additional fan whirling between the fastest possible modes (non-vsynced) in =<2.3.3 releases and the vsynced fastest possible modes in these beta's. They both whirl up the fan a bit. This is on a Core I7-920 overclocked to 4Ghz with a Scythe Mugen 3 cooler (which when not stressed runs at about 400 RPM )

Toni, I'm not sure, what is the expected behaviour for the "CPU Idle" setting/slider in these beta's? Should it be able to lower the 100% cpu usage in the onscreen led to something less when used? Currently the setting doesn't seem to have impact, but maybe I'm missing something (never made much use of this setting..)
Dr.Venom is offline  
Old 12 December 2011, 17:46   #28
rsn8887
Registered User
 
rsn8887's Avatar
 
Join Date: Oct 2006
Location: USA
Posts: 1,058
When using non-latency Vsync without cycle exact and any speed setting "Fastest Possible/approximate A1200/adjustable CPU," I am getting jerky scrolling and pretty terrible screen tearing. Tested with Beta 3 and Hyperdrive (PD-Game). Problem remains when setting priority to above normal, increasing cpu idle or switching buffering between no/double/triple.

Logs are attached.

Scrolling is perfect in non-latency Vsync mode when using cycle exact. Sadly, some other games have slow down in this mode, I think because my PC is not fast enough for cycle exact A1200 mode when there's lots going on (e.g. in Slamtilt).

I have a dual core machine. It is a 2.8 GHz Pentium D. I am using Directdraw and 100 Hz (PAL). I tried briefly using Direct3D, but got a blue screen.

Dump from that Direct3D crash is also attached.

This might be related: Before non-latency Vsync was implemented, the old Vsync actually worked for me in fastest possible. It was weird though, because CPU usage was NOT at 100%. Since non-latency Vsync was implemented, the old Vsync has jerky scrolling now.

EDIT: When I use Directsound instead of Portaudio/ASIO4ALL, the scrolling is not jerky, there's some sound pitch shifting, and there's still tearing. I suppose the new vsync mode is related to sound? If I disable sound emulation, the emulator runs at 400 fps!
Attached Files
File Type: zip logs.zip (21.7 KB, 290 views)

Last edited by rsn8887; 12 December 2011 at 18:18.
rsn8887 is offline  
Old 12 December 2011, 19:57   #29
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by Dr.Venom View Post
Toni, I'm not sure, what is the expected behaviour for the "CPU Idle" setting/slider in these beta's? Should it be able to lower the 100% cpu usage in the onscreen led to something less when used? Currently the setting doesn't seem to have impact, but maybe I'm missing something (never made much use of this setting..)
I am not yet sure if it even can work in vsync modes

Quote:
Originally Posted by rsn8887 View Post
Scrolling is perfect in non-latency Vsync mode when using cycle exact. Sadly, some other games have slow down in this mode, I think because my PC is not fast enough for cycle exact A1200 mode when there's lots going on (e.g. in Slamtilt).
Normal vsync modes can be broken, later..

Quote:
I tried briefly using Direct3D, but got a blue screen.
Update your display drivers. DirectDraw support isn't update yet. It is always D3D that comes first, when it is considered working, DirectDraw gets updated. (I don't want to rewrite both code paths multiple times)

Quote:
EDIT: When I use Directsound instead of Portaudio/ASIO4ALL, the scrolling is not jerky, there's some sound pitch shifting, and there's still tearing. I suppose the new vsync mode is related to sound? If I disable sound emulation, the emulator runs at 400 fps!
Only DirectSound has autoadjustment (+pitch changes). Sound tweaks will come later.

It is always good idea to use normal defaults when testing new features (DirectSound, D3D) and then compare differences.
Toni Wilen is offline  
Old 12 December 2011, 20:12   #30
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
http://www.winuae.net/files/b/winuae_2400b4.zip

Beta 4:

- Another switching from CE mode to non-CE hang fix. (Blitter nasty related)
- Another too fast CPU audio hack update, fixes random glitches (Uridium II, Moonstone, probably many others)
- Low latency vsync buffering change, selected buffering mode can be modified now.
* - No buffering is same as previously
* - Double and triple buffering can be enabled, increases latency but can reduce random jumps.
- Fastest possible CPU low latency vsync update:
* - Works now without buffering
* - Flips buffers in vblank thread (Flipping timing is correct now, tearing gone)
Toni Wilen is offline  
Old 12 December 2011, 22:00   #31
rsn8887
Registered User
 
rsn8887's Avatar
 
Join Date: Oct 2006
Location: USA
Posts: 1,058
Quote:
Originally Posted by Toni Wilen View Post
It is always good idea to use normal defaults when testing new features (DirectSound, D3D) and then compare differences.
Ah, thanks for clearing that up.

I just tested newest beta 4 using Directsound and Direct3d.

Tearing is gone, scrolling is mostly smooth.

However, there are still random stutters in the scrolling, jerky scrolling, usually one or two per second, sometimes much more frequent, sometimes less. It seems to depend on how much is going on in the game, but I am not sure about that. I tested mostly with Slamtilt, but also with Hyperdrive. Much less is going on in Hyperdrive, still see some stutters. Stuttering is worse at low sound buffer settings (1,2), but does not go away at larger buffer settings. Double or triple buffer doesn't change it.

I am attaching the logs.
Attached Files
File Type: zip logs.zip (7.1 KB, 267 views)
rsn8887 is offline  
Old 13 December 2011, 16:22   #32
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Another test: http://www.winuae.net/files/b/winuae.zip

This version does not lose frames even if vblank detection gets delayed for a few milliseconds (one PAL frame is only 20ms, NTSC is ~16ms). Delayed vblank now causes tearing at the top of screen which is less annoying than jumps.

Try following base configuration, when/if it works, then try your custom configuration(s):

- low latency vsync
- directsound, buffer 4
- 50hz or 60hz refresh rate (100Hz+ may not work yet) Test also 60Hz because sometimes 50Hz simply won't work even if monitor supports it.
- fullscreen (windowed usually also works but Aero can cause issues in some situations)
- try all buffering setups
- cycle-exact (a500 or 1200), fastest possible and JIT. (Interestingly JIT may work better than non-JIT fastest possible!)
Toni Wilen is offline  
Old 13 December 2011, 20:54   #33
rsn8887
Registered User
 
rsn8887's Avatar
 
Join Date: Oct 2006
Location: USA
Posts: 1,058
I only tested 100 Hz so far (cannot test 50 Hz) and a bit of 60 Hz. Fastest Possible non-JIT.
no buffering: works fine for a while (10 secs), then stutters
double buffering: works fine for while, then screen tearing
triple: seems perfectly fine so far. Stays fine with directsound, sound buffer=2. Tried Portaudio Async4All, but starts stuttering as soon as Portaudio is enabled, regardless of sound buffer setting.

In 60 Hz, I got erratic "flickering" in all buffering modes (rate about 2 Hz). With flickering I mean that for example in slamtilt, an old frame flickers together with the new frame. If only the ball is moving, it looks like it has a ghost ball behind it that flashes every once in a while.

PS: once it starts stuttering or tearing or flickering it doesn't really stop until I go to options, change d3d filter or priority or sth, and click ok, then it is usually good for a little bit. It is rather erratic though.

PPS: In JIT mode the game slamtilt crashed on the intro screen.

Last edited by rsn8887; 13 December 2011 at 20:57. Reason: EDIT: In JIT mode the game slamtilt crashed on the intro screen.
rsn8887 is offline  
Old 13 December 2011, 20:57   #34
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Does it work smoothly if you disable sound completely? (Disable it before starting emulation). What does SND% show? Does it flicker yellow or blue?

Can anyone else (than me and Dr Venon) make this work? It works more than perfectly here, soooooo smooooth whatever the mode (CE/fastest possible/JIT), even in windowed mode.
Toni Wilen is offline  
Old 13 December 2011, 21:38   #35
rsn8887
Registered User
 
rsn8887's Avatar
 
Join Date: Oct 2006
Location: USA
Posts: 1,058
Quote:
Originally Posted by Toni Wilen View Post
Does it work smoothly if you disable sound completely? (Disable it before starting emulation). What does SND% show? Does it flicker yellow or blue?

Can anyone else (than me and Dr Venon) make this work? It works more than perfectly here, soooooo smooooth whatever the mode (CE/fastest possible/JIT), even in windowed mode.
Yes it works perfectly in all buffering modes, if I disable sound completely. With sound on, it only works stutter free in triple buffered mode. The snd% is around +12 (or -12) hard to tell, it flickers, in all modes. It is not blue or yellow.

(ignore this it is untrue:
It seems to be related to how much is going on in the game. I tested hyperdrive instead of slamtilt, and it looks like it works smooth without stutters even in "no buffering" mode.
)

Damn, I was still in triple buffering when I tested with hyperdrive. It does stutter when sound is on, unless I go to triple buffering after all.
rsn8887 is offline  
Old 14 December 2011, 08:43   #36
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by rsn8887 View Post
Yes it works perfectly in all buffering modes, if I disable sound completely. With sound on, it only works stutter free in triple buffered mode. The snd% is around +12 (or -12) hard to tell, it flickers, in all modes. It is not blue or yellow.
Strange. No colored flashing = no buffer under or overflow but it still seems to cause similar problems.. Could you attach your config file? Perhaps you have some setting enabled that is not handled correctly.

Any change if you try different active priority settings?
Toni Wilen is offline  
Old 14 December 2011, 15:40   #37
rsn8887
Registered User
 
rsn8887's Avatar
 
Join Date: Oct 2006
Location: USA
Posts: 1,058
Quote:
Originally Posted by Toni Wilen View Post
Strange. No colored flashing = no buffer under or overflow but it still seems to cause similar problems.. Could you attach your config file? Perhaps you have some setting enabled that is not handled correctly.

Any change if you try different active priority settings?
There's no change when I try different priorities. I am attaching the config.

I think it is weird that it really works perfectly fine in triple buffered mode (as long as I use Directsound and not portaudio), just not in no buffered and double buffered.
Attached Files
File Type: uae A1200.uae (10.8 KB, 268 views)
rsn8887 is offline  
Old 14 December 2011, 19:21   #38
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by rsn8887 View Post
There's no change when I try different priorities. I am attaching the config.

I think it is weird that it really works perfectly fine in triple buffered mode (as long as I use Directsound and not portaudio), just not in no buffered and double buffered.
Triple buffering is the only buffering mode that can work without slowdowns if page flipping is not immediate, perhaps you have forced vblank wait set in display driver control panel utility?
Toni Wilen is offline  
Old 15 December 2011, 19:49   #39
rsn8887
Registered User
 
rsn8887's Avatar
 
Join Date: Oct 2006
Location: USA
Posts: 1,058
Quote:
Originally Posted by Toni Wilen View Post
Triple buffering is the only buffering mode that can work without slowdowns if page flipping is not immediate, perhaps you have forced vblank wait set in display driver control panel utility?
My nvidia control panel (I have a Geforce 9500 GT) is at default settings, using latest driver version. The default for "Vertical Sync" is "Use the 3D application Setting," I just tried to force it to off, but same behaviour in WinUAE.
rsn8887 is offline  
Old 15 December 2011, 20:47   #40
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
I tried WHDLoad SlamtiltAGA, perfect smooth scrolling. (with or without JIT)

Could you try Vision Megademo IV? It is my favorite vsync test program because it has lots of parts with big scrollers (For some reason I need to have JIT enabled when starting it or it crashes.. after it has started JIT can be disabled)

winuae.zip also updated again, some sound adjusment tweaks (must use DirectSound)
Toni Wilen is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
WinUAE 2.5.1 beta series Toni Wilen support.WinUAE 69 22 December 2012 10:22
WinUAE 2.3.3 beta series Toni Wilen support.WinUAE 124 17 September 2011 15:48
WinUAE 2.3.2 beta series Toni Wilen support.WinUAE 79 31 May 2011 19:39
WinUAE 2.3.0 beta series (was 2.2.1) Toni Wilen support.WinUAE 229 22 September 2010 19:20

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:30.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.31640 seconds with 14 queries