Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user jmi ! (Registered 2024-09-15) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > VICE - "warp mode" is sometimes super-slow..?
2024-07-27 16:33
Raistlin

Registered: Mar 2007
Posts: 622
VICE - "warp mode" is sometimes super-slow..?

I've noticed that entering Warp Mode on VICE, the results can vary quite a lot and wondered what might be happening. In particular, some of the dot-scroller parts in such as I Love the Cube 100% will run almost at 100% in Warp Mode .. where other parts will run at 800% or so.

I noticed that the code has a load of ANE instructions .. so maybe there's some problem with those?

Just thought I'd ask. I hope this is the correct forum category.

(I'm running the Windows build BTW, 3.7.1)
2024-07-27 18:26
Jetboy

Registered: Jul 2006
Posts: 265
it runs 80% for me without warp mode :)
2024-07-27 19:55
Gordian

Registered: May 2022
Posts: 49
Warp mode depends on "Enable sound playback" option for sure. It's much more faster when sound is disabled.
Maybe the part you mentioned uses SID quite intensively.
2024-07-28 09:34
spider-j

Registered: Oct 2004
Posts: 482
Quoting Raistlin
I've noticed that entering Warp Mode on VICE, the results can vary quite a lot and wondered what might be happening. In particular, some of the dot-scroller parts in such as I Love the Cube 100% will run almost at 100% in Warp Mode .. where other parts will run at 800% or so.

Here the dot scroller part goes down a bit (~650% instead of 750%-850% like the rest), but I do use recent trunk (VICE 3.8 SVN r45251) and have compiled it myself running on Linux.

Maybe there's less optimization with generic builds or newer VICE version perfoms better or for some reason Windows perform poorly at that part.

In general when it comes to VICE: if I encounter any "problems" I make sure to get the most current trunk version first to make sure I don't find anything that VICE team had addressed already. Afair there are nightly Windows builds somewhere to be found.
2024-07-28 10:06
iAN CooG

Registered: May 2002
Posts: 3170
use older Vice 3.2 instead of the new ones if you want a real warp mode.
2024-07-28 10:28
Jetboy

Registered: Jul 2006
Posts: 265
Quote: Warp mode depends on "Enable sound playback" option for sure. It's much more faster when sound is disabled.
Maybe the part you mentioned uses SID quite intensively.


Not the case here. I turned off sound, and it slows down in the same spot.

It's not ANE instruction most probably, as i tried to run:

c000 sei
c001 ane #$80
c003 jmp *c001

and it runs at full speed.

VICE 3.6.1 here on win10
2024-07-28 10:39
jab

Registered: Apr 2020
Posts: 15
Quote: I've noticed that entering Warp Mode on VICE, the results can vary quite a lot and wondered what might be happening. In particular, some of the dot-scroller parts in such as I Love the Cube 100% will run almost at 100% in Warp Mode .. where other parts will run at 800% or so.

I noticed that the code has a load of ANE instructions .. so maybe there's some problem with those?

Just thought I'd ask. I hope this is the correct forum category.

(I'm running the Windows build BTW, 3.7.1)


Quoting Raistlin
(I'm running the Windows build BTW, 3.7.1)


Generally speaking, I understand there are sometimes reasons™ to use older versions of VICE, but is it really too much trouble to at least try it with the most recent one, before bringing up an issue? It could have been fixed already.

...but in this case seems it's not. With the Windows 3.8 build the CPU meter drops from around 600% to 40% on my machine. Turning warp mode off at that point returns to 100%.
2024-07-28 15:04
chatGPZ

Registered: Dec 2001
Posts: 11290
Those things must be genuine windows problems, warp works just fine for me :)

(also make sure to use the exact same settings when comparing those numbers, else it makes even less sense)

Quote:
Warp mode depends on "Enable sound playback" option for sure. It's much more faster when sound is disabled.

It used to do this in older releases, it doesn't do this anymore in newer releases, as that broke certain things (in particular the testbench).

Quote:
Generally speaking, I understand there are sometimes reasons™ to use older versions of VICE, but is it really too much trouble to at least try it with the most recent one, before bringing up an issue? It could have been fixed already.

If there are reasons to use 3.7.1 over a recent one then we definitely want to hear them - because there shouldn't be any. For coding, you really want to use the head revision in all cases.
2024-07-28 15:58
Gordian

Registered: May 2022
Posts: 49
Quoting chatGPZ

Quote:
Warp mode depends on "Enable sound playback" option for sure. It's much more faster when sound is disabled.

It used to do this in older releases, it doesn't do this anymore in newer releases, as that broke certain things (in particular the testbench).

Is it intended that uncheck "Enable sound playback" disables emulating SID entirely? I've noticed that random number generator based on $D41B doesn't work while sound is disabled.
2024-07-28 16:03
tlr

Registered: Sep 2003
Posts: 1762
Quoting Gordian
Is it intended that uncheck "Enable sound playback" disables emulating SID entirely? I've noticed that random number generator based on $D41B doesn't work while sound is disabled.

Of course. The random number generator is part of the SID emulation. The same happens if you pull the SID from a c64.
2024-07-28 16:21
chatGPZ

Registered: Dec 2001
Posts: 11290
I should have been more precise: in the past warpmode did disable some things which DO change the emulation (besides running faster of course) - on of them was that it disabled the SID alltogether (which produces problems with programs that require SID emulation, obviously). It does not do that anymore for a while. So yes, if you manually disable the SID, then warp will be faster. The same is true for a few other things, some of which may or may not be enabled by default.
2024-07-28 18:10
hedning

Registered: Mar 2009
Posts: 4694
<Post edited by hedning on 28/7-2024 19:30>

Vice 2.4 <3 Best ever.
2024-07-28 18:11
Gordian

Registered: May 2022
Posts: 49
Quoting tlr
Quoting Gordian
Is it intended that uncheck "Enable sound playback" disables emulating SID entirely? I've noticed that random number generator based on $D41B doesn't work while sound is disabled.

Of course. The random number generator is part of the SID emulation. The same happens if you pull the SID from a c64.

Really?:)
I was asking about what the option does or should do. Because it may work as a mute or completely disabling SID emulation.
Now I can think it was intentional - maybe for faster warp, may for testing without SID.
2024-07-28 18:42
Raistlin

Registered: Mar 2007
Posts: 622
Quote: I should have been more precise: in the past warpmode did disable some things which DO change the emulation (besides running faster of course) - on of them was that it disabled the SID alltogether (which produces problems with programs that require SID emulation, obviously). It does not do that anymore for a while. So yes, if you manually disable the SID, then warp will be faster. The same is true for a few other things, some of which may or may not be enabled by default.

I'm running a lot of releases lately while updating things on C64GFX.. and have had a few releases where if I enable Warp Mode, the release will crash. Not using Warp Mode, it works fine. As my backlog's huge I've never really stopped to look into it further - sorry - but I'd say that there's -something- happening with Warp on Windows that is untoward.....

And that Warp Mode seems to gradually get slower on certain demo parts makes me think that there's something quite "nasty" happening.
2024-07-28 18:57
tlr

Registered: Sep 2003
Posts: 1762
Quoting Raistlin
I'm running a lot of releases lately while updating things on C64GFX.. and have had a few releases where if I enable Warp Mode, the release will crash. Not using Warp Mode, it works fine. As my backlog's huge I've never really stopped to look into it further - sorry - but I'd say that there's -something- happening with Warp on Windows that is untoward.....

And that Warp Mode seems to gradually get slower on certain demo parts makes me think that there's something quite "nasty" happening.

Sounds really weird! I never saw anything like that when running regression tests in warp for quite long durations (Ubuntu Linux).

If you have suboptimal thermal solution, like a typical 13” laptop, it could in theory be CPU core throttling you are seeing.
2024-07-28 19:55
Jetboy

Registered: Jul 2006
Posts: 265
Quoting tlr
If you have suboptimal thermal solution, like a typical 13” laptop, it could in theory be CPU core throttling you are seeing.


That is not it. I'm sure. Those dot scrolls are really slowing down the emulation. I can normally run a few instances of vice and it runs fine in pararell, each at 100% speed.

I would expect if there is a lot of code running on the drive, and c64it might slow down, but not to a crawl.

@Raistlin if you find some more prods with similar behaviour, please list them here.
2024-07-28 21:24
algorithm

Registered: May 2002
Posts: 705
Tried the dot parts in vice (windows) 3.8 r45202 on zen3 (5800h) no thermal throttling. 80% speed even with warp set to off. No other demo part i have tried goes under 100% apart from this dot scroller part
2024-07-28 21:34
chatGPZ

Registered: Dec 2001
Posts: 11290
What happens is that it writs a line to the log on each ANE ... in the settings, try setting "log to stdout" and see if that changes anything. (this was just recently fixed so maybe has a different effect in older VICE)

Quote:
I'm running a lot of releases lately while updating things on C64GFX.. and have had a few releases where if I enable Warp Mode, the release will crash. Not using Warp Mode, it works fine. As my backlog's huge I've never really stopped to look into it further - sorry - but I'd say that there's -something- happening with Warp on Windows that is untoward.....

It would help to know what releases those are, obviously :)
2024-07-28 21:43
algorithm

Registered: May 2002
Posts: 705
Quote: What happens is that it writs a line to the log on each ANE ... in the settings, try setting "log to stdout" and see if that changes anything. (this was just recently fixed so maybe has a different effect in older VICE)

Quote:
I'm running a lot of releases lately while updating things on C64GFX.. and have had a few releases where if I enable Warp Mode, the release will crash. Not using Warp Mode, it works fine. As my backlog's huge I've never really stopped to look into it further - sorry - but I'd say that there's -something- happening with Warp on Windows that is untoward.....

It would help to know what releases those are, obviously :)


That fixed it (setting std out)
2024-07-28 22:54
chatGPZ

Registered: Dec 2001
Posts: 11290
That's crazy...
2024-07-28 23:42
Raistlin

Registered: Mar 2007
Posts: 622
Quote: That fixed it (setting std out)

Ahhhh, nice! So are we saying this is fixed on the latest nightly build?
2024-07-29 00:38
chatGPZ

Registered: Dec 2001
Posts: 11290
Something related to that setting was fixed, not something related to the slowdown :D
2024-07-29 01:55
Jetboy

Registered: Jul 2006
Posts: 265
Quoting chatGPZ
What happens is that it writs a line to the log on each ANE ... in the settings, try setting "log to stdout" and see if that changes anything.

Sorry for a stupid question. Where is that setting in settings? Coz i can't find it. Thanks in advance.
2024-07-29 02:01
chatGPZ

Registered: Dec 2001
Posts: 11290
Host->Environment->VICE log file
2024-07-29 14:15
Raistlin

Registered: Mar 2007
Posts: 622
Quote: Host->Environment->VICE log file

Is that just on the Head version? On 3.7.1 Windows, I don't see that. Under Host I just have: Autostart, Hotkeys, Monitor, Netplay, Snapshot/event/..., Current directory, CPU Jam action.
2024-07-29 14:38
iAN CooG

Registered: May 2002
Posts: 3170
in my gtkvice 3.7.1 is there as 2nd to last option between "Snapshot/event/media recording" and "CPU JAM action".
Maybe take the occasion to upgrade to VICE 3.8
2024-07-31 19:14
chatGPZ

Registered: Dec 2001
Posts: 11290
Try r45253 from here (when it shows up in 15 minutes or so).

The actual problem in that demo was that it uses ANE so often, the warnings that went into the log just was too much :) So these are disabled now by default, which fixes that part (GUI options for this coming up later).

And while at it, i added an option that allows to (optionally) skip the soundchip emulation(s) in warp mode. Right now use "-soundwarpmode 0" on the commandline (or resset "SoundEmulateOnWarp" "0" in the monitor) and then save settings. This will considerably speed up warp mode at the cost of some (little) compatibility :) (again: GUI options for this coming up later).

It'd be interesting to know if there are still any releases which show unusual behaviour like this (with r45253 or later that is)
2024-07-31 20:34
Exile

Registered: Dec 2002
Posts: 55
I used my old pc first with a 6 core amd phenom 3.2ghz and it warped 3000x faster, but with my intel quadcore laptop only 400x faster. Could that be it? AMD or Intel?
2024-08-01 00:59
spider-j

Registered: Oct 2004
Posts: 482
@Exile: ChadGPZ will know better, but I guess VICE is probably still very much "single threaded" (maybe 2?!?):
2024-08-01 01:32
chatGPZ

Registered: Dec 2001
Posts: 11290
That is very much true for the SDL port - GTK is multithreaded though ;)
2024-08-01 01:37
Martin Piper

Registered: Nov 2007
Posts: 698
Isn't ANE highly unstable anyway?
2024-08-01 01:46
spider-j

Registered: Oct 2004
Posts: 482
Quoting chatGPZ
That is very much true for the SDL port - GTK is multithreaded though ;)

WAT? As a SDL fan I just can say: Nooooooooooooooooooooooo! XD
2024-08-01 08:35
tlr

Registered: Sep 2003
Posts: 1762
Quoting Martin Piper
Isn't ANE highly unstable anyway?

The "magic" constant of ANE #<imm> and LAX #<imm> is indeed unstable but there are conditions (values) where the constant does not influence the result.
2024-08-01 15:12
chatGPZ

Registered: Dec 2001
Posts: 11290
That demo falls flat if the constant isnt at least very similar to 0xee though, so it will not work properly on all C64s :)
2024-08-02 15:02
chatGPZ

Registered: Dec 2001
Posts: 11290
So noone bothered to test r45253 eh?
2024-08-03 12:53
Jetboy

Registered: Jul 2006
Posts: 265
I guess people call that "unrealistic expectations" ;)
2024-08-03 16:31
Raistlin

Registered: Mar 2007
Posts: 622
Quote: So noone bothered to test r45253 eh?

Hey, sorry, I need to come back to this sometime. I wish I’d kept a note of releases I saw with problems… I’ve been getting through running a lot of releases lately - you probably saw a slight increase in my CSDb release commenting of late ;p - so for sure can test more soon.

I’ll stick with my current VICE until I see another demo with a problem - then I can do an old vs new test and let you know.
2024-08-03 21:03
jab

Registered: Apr 2020
Posts: 15
Quoting chatGPZ
Try r45253 from here (when it shows up in 15 minutes or so).

Had time to try it out now. Cpu doesn't drop anymore from its value around 600%. Nice.

Quoting chatGPZ
And while at it, i added an option that allows to (optionally) skip the soundchip emulation(s) in warp mode. Right now use "-soundwarpmode 0" on the commandline (or resset "SoundEmulateOnWarp" "0" in the monitor) and then save settings. This will considerably speed up warp mode at the cost of some (little) compatibility :) (again: GUI options for this coming up later).

This made my warp mode go to eleven! Err, I mean 1100%. WOW! Thanks!
2024-08-27 04:33
Raistlin

Registered: Mar 2007
Posts: 622
Just to come back to this, I can confirm that the bug is fixed on the latest VICE :-)

I found another demo exhibiting the same problems - and on a very similar effect (is using ANE a well-known trick for these dot scrollers I wonder?). Latest VICE works fine, though.

Farbraus
2024-08-27 16:51
chatGPZ

Registered: Dec 2001
Posts: 11290
LAX#imm had the same "problem" - guess that one is much more common than ANE#imm :)
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
bugjam
Ax!s/Onslaught - TND
Paladin/G★P
REBEL 1/HF
t0m3000/HF^BOOM!^IBX
Krill/Plush
JEZ
Airwolf/F4CG
Guests online: 155
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 No Bounds  (9.6)
10 Unboxed  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Morph  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Nostalgia  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.2)
Top Logo Graphicians
1 Sander  (9.8)
2 Mermaid  (9.5)
3 Facet  (9.4)
4 Shine  (9.4)
5 Pal  (9.4)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.099 sec.