English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 15 December 2019, 23:24   #1
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
My new script causes some demos to run at a slow crawl

I have attached the enclosed screenshot of a script to an icon and used IconX to run it directly for all archives dragged into RDH0:, but whilst most demos run fine, some run at a snail's pace and I cannot figure out why. It seems that the stack size has nothing to do with it. So what is the problem?

EDIT: Mods, please move to Support.Apps
Attached Thumbnails
Click image for larger version

Name:	001.png
Views:	144
Size:	27.5 KB
ID:	65537  

Last edited by Foebane; 15 December 2019 at 23:31.
Foebane is offline  
Old 16 December 2019, 01:55   #2
DamienD
Banned
 
DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
Quote:
Originally Posted by Foebane View Post
EDIT: Mods, please move to Support.Apps
Well, "support.Other" really but done
DamienD is offline  
Old 16 December 2019, 07:17   #3
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
I found the solution by putting each SPat command into separate scripts, seems there was a conflict of some kind.
Foebane is offline  
Old 16 December 2019, 08:20   #4
jPV
Registered User
 
jPV's Avatar
 
Join Date: Feb 2008
Location: RNO
Posts: 1,007
Quote:
Originally Posted by Foebane View Post
but whilst most demos run fine, some run at a snail's pace and I cannot figure out why.
Maybe because you use the "Run" command for executables, and Run puts them as background processes and let the shell continue immediately. So, if a directory has several executables (or both exe and script) and they multitask (or do some precalc or something before opening screens or disabling the multitask), they all run at the same time which of course leaves much less CPU time for each and makes them crawl.
jPV is offline  
Old 16 December 2019, 10:55   #5
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Quote:
Originally Posted by jPV View Post
Maybe because you use the "Run" command for executables, and Run puts them as background processes and let the shell continue immediately. So, if a directory has several executables (or both exe and script) and they multitask (or do some precalc or something before opening screens or disabling the multitask), they all run at the same time which of course leaves much less CPU time for each and makes them crawl.
Yep, I figured the second SPat command was the cause, but the archives I'm using have only one .exe or one .script each, so I thought I could do a check for both in the same script in a single "launch" icon, and I can't, as I found out. It didn't always happen, mind, only some of them.

And I had to use Run as I needed to use SPat, and SPat required a command to work with the wildcard.
Foebane is offline  
Old 16 December 2019, 12:16   #6
jPV
Registered User
 
jPV's Avatar
 
Join Date: Feb 2008
Location: RNO
Posts: 1,007
Quote:
Originally Posted by Foebane View Post
And I had to use Run as I needed to use SPat, and SPat required a command to work with the wildcard.
Empty command would work:
spat "" #?.exe
jPV is offline  
Old 16 December 2019, 18:47   #7
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Quote:
Originally Posted by jPV View Post
Empty command would work:
spat "" #?.exe
That's done the trick! Thanks, jPV!
Foebane 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
Running WHDLoad games and demos from script Foebane support.Apps 4 09 May 2019 23:12
Original EA demos that run on 27.3 tschak request.Demos 1 16 September 2014 23:00
HD demos don't run from within Gamebase - but why exactly? andreas support.Demos 1 25 October 2010 22:02
Help getting these two demos to run anj support.Demos 5 02 May 2005 05:51
Demos slow after Picasso96 prismra support.WinUAE 4 30 March 2004 20:40

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 16:23.

Top

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