English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   support.WinUAE (https://eab.abime.net/forumdisplay.php?f=5)
-   -   Problem With Jit Settings (https://eab.abime.net/showthread.php?t=45436)

markpage 14 June 2009 16:44

Problem With Jit Settings
 
Hi all, i was wondering if anyone could help me with a small problem ive been having with WinUAE.
I have a Workbench (Scalos) installation with many installed Whdload games, some old Amiga 500 and some more modern like Amiga Quake.
My "Advanced Jit Settings" are set in favour of Amiga Doom and Amiga Quake etc, and also my Scalos installation which requires these settings, so in order to get the A500 games to work correctly, ive edited the tooltype for each game using the following:-

ExecuteStartup=uae-configuration cpu_speed real cachesize 0
ExecuteCleanup=uae-configuration cpu_speed max cachesize 8192

This fixes the timing issue ok for the A500 games and resets everything back to normal for Desktop when quitting except one thing, which is the "Direct/Indirect" option under Advanced Jit Settings. I need it to go back to "Direct" without having to re-load WinUAE. Is there someway to alter this setting through the "Startup-sequence" file. Ive already added this line:-

uae-configuration cpu_speed max cachesize 8192

But this also didn't work.

Mad-Matt 14 June 2009 18:21

Quote:

Originally Posted by markpage (Post 559818)

ExecuteStartup=uae-configuration cpu_speed real cachesize 0
ExecuteCleanup=uae-configuration cpu_speed max cachesize 8192

This fixes the timing issue ok for the A500 games and resets everything back to normal for Desktop when quitting except one thing, which is the "Direct/Indirect" option under Advanced Jit Settings. I need it to go back to "Direct" without having to re-load WinUAE. Is there someway to alter this setting through the "Startup-sequence" file. Ive already added this line:-

I dont know if its all needed, but I use these line :-
ExecuteStartup=C:UAE cachesize 0 finegrain_cpu_speed 1024 cpu_compatible true
ExecuteCleanup=C:UAE cachesize 8192 cpu_speed max win32.cpu_idle 30 comp_trustbyte direct comp_trustword direct comp_trustlong direct comp_trustnaddr direct

hexaae 14 June 2009 20:49

Unfortunately there is no rule for WHDLoad games under WUAE: it's generally good to disable JIT-caches but some games may require 'immediate_blits false/true' etc...
I use in S:WhdLoad_cleanup (will be executed when a game exits, no need* to specify for each one ExecuteCleanup=...):

C:uae-configuration immediate_blits true cachesize 8192 cpu_speed max comp_trustbyte direct comp_trustword direct comp_trustlong direct

or that from Mad-Matt is equally very good.

In S:WHDLoad_startup:

C:uae-configuration cachesize 0

as a general rule... but as I said above some games require a proper ExecuteStartup=... (specifying this tooltype the S:WHDLoad_startup will be ignored) where I enable caches for slow games, immediate blitter off, or I use WUAE's option 'finegrain_cpu_speed xxxx', 'cpu_speed real' etc...

*obviously you have to edit S:WHLoad.prefs:
...
ExecuteStartup=S:WHDLoad_start ;command to execute on WHDLoad startup
ExecuteCleanup=S:WHDLoad_cleanup ;command to execute on WHDLoad exit
...

Toni Wilen 14 June 2009 22:18

I thought this was fixed long time ago. Apparently not :)
In next version old "direct" mode setting will be remembered when switching JIT off.

markpage 14 June 2009 22:25

Thanks to all for ya help, but what i need is a command to put in the startup-sequence to set the "direct/indirect" option to direct, just this. Ive tried to incorporate these commands you guys have shown me but when editing the startup sequence, it only allows the lines to be so long before starting a new line meaning im limited to how many commands i can put on one line, so it needs to be short and precise.

hexaae 14 June 2009 22:52

Just don't use AmigaOS std C:Ed that truncates long lines but any other ASCII text editor from Aminet... like this one: http://aminet.net/text/edit/Annotate.lha

hexaae 14 June 2009 22:54

Quote:

Originally Posted by Toni Wilen (Post 559918)
I thought this was fixed long time ago. Apparently not :)
In next version old "direct" mode setting will be remembered when switching JIT off.

Great! So we can finally forget those 'comp_trustbyte direct...' commands if we switch off and then on JIT!

prowler 15 June 2009 01:20

Quote:

Originally Posted by hexaae (Post 559937)
Just don't use AmigaOS std C:Ed that truncates long lines but any other ASCII text editor from Aminet... like this one: http://aminet.net/text/edit/Annotate.lha

Thanks for the link, hexaae! :great :)

nikvest 15 June 2009 14:41

Is it possible for someone to put an example of this procedure?

I don't quite understand how it works (please, provide specific locations and instructions; e.g. where to put, what tooltype, exactly what directory I need to refer to etc).

markpage 15 June 2009 17:45

Thanks for everybody's help, thanks to you ive sorted it. on the games tooltype ive got:-

ExecuteStartup=uae-configuration cpu_speed real cachesize 0
ExecuteCleanup=uae-configuration cpu_speed max cachesize 8192

I just added this to the end of second line:-

comp_trustbyte direct

Now when i quit back to workbench, the cpu is set back to direct.
The other problem i had was when a game is loaded, and you do an amiga reset, the second line in the whdload tooltype gets skipped meaning that the emulator is still set in A500 mode which is too slow to run Scalos workbench. I fixed this by putting the following in the Startup-sequence:-

uae-configuration cachesize 8192 cpu_speed max win32.cpu_idle 0
uae-configuration comp_trustbyte direct

This fixes it so that everythings resets back to my default winUAE cpu settings.

Thanks again.

markpage 15 June 2009 17:52

Hi Nikvest, i will get back to you on detailed instructions so keep checking back.

markpage 15 June 2009 21:07

This is to Nikvest.(Or anyone who might need it).

To edit a games "Tooltype", load up Workbench, left click once on a games picture icon, then hold right mouse button down and hover mouse pointer over "Icons" option at the top of the screen, move mouse pointer down to "Information" and let go of button. A menu will pop up, in the menu click on "Tooltypes" tab and in the window there might already be some tooltype commands, if there is click on the last one and then click on "New" to enter a new one.
Next to where you clicked "New" you will see "(new)" in the window, delete this and type the following:-

ExecuteStartup=uae-configuration cpu_speed real cachesize 0

Then press Return and the Tooltype will appear in the window under the others. This sets the hardware for running A500 games, now we need to make sure that the hardware is set back when we quit the game, so type this :-

ExecuteCleanup=uae-configuration cpu_speed max cachesize 8192 comp_trustbyte direct

Then press Return. This command will execute on exiting the game, unless you do an Amiga Reset while the game is running, in which case the second line will be skipped but i'll get to that in a moment.

Once you've finished entering the lines, hold right mouse button down and select "Save" from the top left menu list. The tooltype is now saved.

As i mentioned above, when doing an Amiga Reset while game is running, the Cleanup process is skipped meaning that your WinUAE CPU settings will not be returned, this means your workbench won't be able to load back, especially if your using a modern Workbench installation or replacement.
To fix this problem you need to edit the Workbench's "Startup-sequence", to do this load Workbench and double click on the "System" drive, or whatever you've called it, then double click on the "System" folder, then double click the "Shell" icon to load the shell. A small window will open and you will be prompted to enter text so type the following at the prompt:-

ed s:startup-sequence

The "Startup-sequence" file will open in a text window, all entries that start with ";" are not actually commands but just notes or reminders, so at the start of the text, directly underneath any of these notes, type the following:-

uae-configuration cpu_speed max cachesize 8192
uae-configuration comp_trustbyte direct

The second line will switch the "Direct/Indirect" option under Advanced Jit Settings back to "Direct". I am of course assuming that this is what your CPU settings are set to, to be honest, if you are using a modern Workbench installation, i would recommend these settings as you will benefit from them if your PC is good.

Hope this helps in some way, also, look over the posts that other's have put here, you might find some useful info.

prowler 15 June 2009 21:18

Thanks for that great effort, markpage! :great :bowdown

markpage 15 June 2009 21:28

Your welcome.

markpage 15 June 2009 22:37

To any newcomers looking to install Workbench on a virtual amiga hardrive, check out this address, this is where i learnt to do it.

http://guide.abime.net/wbsetup.htm

It will show you a lot of great things, if any of the links give you a problem, try finding what you need at:-

http://aminet.net/

Everything needed for this tutorial is freeware, except Workbench Disk images, your on your own for that one im afraid as i think they are still copyright protected.

Hope this is helpful.

nikvest 16 June 2009 02:53

Thank you very much for your help.

I will start redoing my game collection... NOW:):).

markpage 16 June 2009 03:16

Here's a great trick i came up with for all you with an Amiga Workbench installation, assuming your using WinUAE of course.

Creating Desktop Executable for Amiga Workbench
===============================================

This will take just a few seconds, at the end you will be able to double click
the desktop shortcut to load Amiga Workbench rather than keep loading WinUAE and
double clicking the config.

Go into your "WinUAE/configurations" folder and right click on the configuration.uae
text file and select "Properties". Next to where it says "Opens With", click "Change"
Button and select the "WinUAE" executable then click "OK".

Now right click again on the configuration.uae file and this time select "Create Shortcut".
Now right click the shortcut and select "Properties", now click the "Change Icon" button
and then click on "Browse" and browse your way to the "WinUAE" executable and double click it to select it's icon, then click "OK" and drag the shotcut to the desktop and rename it "Amiga" or whatever you want. Now double click to boot Amiga Workbench.

Easy peasy, no more loading WinUAE.

TCD 16 June 2009 08:21

In the newer versions of WinUAE, .uae files are already associated with WinUAE, so no need to create the association yourself. Just creating the shortcut is enough. Make sure that in your config the checkbox 'Show GUI on startup' on the 'Miscellaneous' panel is not set.

nikvest 16 June 2009 13:56

Quote:

Originally Posted by markpage (Post 560320)
This is to Nikvest.(Or anyone who might need it).

To edit a games "Tooltype", load up Workbench, left click once on a games picture icon, then hold right mouse button down and hover mouse pointer over "Icons" option at the top of the screen, move mouse pointer down to "Information" and let go of button. A menu will pop up, in the menu click on "Tooltypes" tab and in the window there might already be some tooltype commands, if there is click on the last one and then click on "New" to enter a new one.
Next to where you clicked "New" you will see "(new)" in the window, delete this and type the following:-

ExecuteStartup=uae-configuration cpu_speed real cachesize 0

Then press Return and the Tooltype will appear in the window under the others. This sets the hardware for running A500 games, now we need to make sure that the hardware is set back when we quit the game, so type this :-

ExecuteCleanup=uae-configuration cpu_speed max cachesize 8192 comp_trustbyte direct

Then press Return. This command will execute on exiting the game, unless you do an Amiga Reset while the game is running, in which case the second line will be skipped but i'll get to that in a moment.

Once you've finished entering the lines, hold right mouse button down and select "Save" from the top left menu list. The tooltype is now saved.

As i mentioned above, when doing an Amiga Reset while game is running, the Cleanup process is skipped meaning that your WinUAE CPU settings will not be returned, this means your workbench won't be able to load back, especially if your using a modern Workbench installation or replacement.
To fix this problem you need to edit the Workbench's "Startup-sequence", to do this load Workbench and double click on the "System" drive, or whatever you've called it, then double click on the "System" folder, then double click the "Shell" icon to load the shell. A small window will open and you will be prompted to enter text so type the following at the prompt:-

ed s:startup-sequence

The "Startup-sequence" file will open in a text window, all entries that start with ";" are not actually commands but just notes or reminders, so at the start of the text, directly underneath any of these notes, type the following:-

uae-configuration cpu_speed max cachesize 8192
uae-configuration comp_trustbyte direct

The second line will switch the "Direct/Indirect" option under Advanced Jit Settings back to "Direct". I am of course assuming that this is what your CPU settings are set to, to be honest, if you are using a modern Workbench installation, i would recommend these settings as you will benefit from them if your PC is good.

Hope this helps in some way, also, look over the posts that other's have put here, you might find some useful info.

Well, not working for me...:sad:sad

By the way, I don't need noob tutorial with such extreme detail:D. I know a thing or two about Amiga and Workbench. It's just... this tooltype thing isn't working for me. I tried to create ExecuteStartup and ExecuteCleanup in S: as well, but then a get information that it is impossible to complete the tasks I stated in those scripts.

I actually wanted you to give me a clear example of one game. Meaning: if the game is Apidya, am I:

- supposed to use ExecuteStartup=uae-configuration or ExecuteStartup=Apidya in the tooltype itself
- should I make any specific configurations within WinUAE itself (I used 68040 processor, with JIT already enabled)
- what is this talk about C:UAE somewhere up this topic... am I supposed to state actual PC directory structure or what??

Bottom line... it doesn't work for me yet. I need a clear example for one game.

Mad-Matt 16 June 2009 14:44

unless you really want to set settings on a per game basis, id stick to using s:whdload.prefs just to keep things simple.

C:UAE is just renamed uae-configuration in C dir, just to keep things simple ...for me ;)

theres a very short limit on how much you can parse to whdload so it helps to keep text short as possible


All times are GMT +2. The time now is 16:50.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04759 seconds with 11 queries