English Amiga Board


Go Back   English Amiga Board > Other Projects > project.WHDLoad

 
 
Thread Tools
Old 22 December 2015, 17:19   #1
ascp
Pastafarian
 
Join Date: Sep 2010
Location: Uppsala/Sweden
Posts: 290
Conquest of the longbow - sierra

I know this game has a whdload install, but the game itself is unplayable slow and it doesn't seem to help with any accelarator. No other sierra game on amiga behaves likes this - is there any way the whdpatch could help in speeding up the game and make it playable?. I noticed someone did put a patch request for this a couple of years ago but it was closed with no answer. http://mantis.whdload.de/view.php?id=1724

Last edited by ascp; 22 December 2015 at 17:25.
ascp is offline  
Old 22 December 2015, 21:57   #2
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,333
Well, I closed the issue with "will not be fixed". I could have added an explanation: I don't want to spend a lot of time trying to optimize the engine. It may lead nowhere, all this energy for a single game.

BUT, when I check the loaded segments, I'm seeing that some segments are loaded into chip memory:
- segment 1, segment 53

but:

- there are plenty of fastmem available (up to 2MB)
- "multiview" on the executable / disassemble does not show any "CHIP"-forced section (I already boosted some games like UBBCD32 by somehow clearing the chip flag)

Strange!! any ideas?

Last edited by jotd; 22 December 2015 at 22:12.
jotd is offline  
Old 22 December 2015, 22:11   #3
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Not worth the effort, could as well code the interpreter from scratch again.
StingRay is offline  
Old 22 December 2015, 22:21   #4
ascp
Pastafarian
 
Join Date: Sep 2010
Location: Uppsala/Sweden
Posts: 290
Thanks for the explanation. As the other Sierra "modern i.e that last batch that came out for amiga" games (SQ 1 remake, SQ 4, KQ 6) run pretty decent also using the Sierra SCI-interpreter I can't understand why this particular game is so sluggish. They all use the SCI1 versions of the Sierra SCI-interpreter. Also, the other works better and better the more cpu they get.
Whats the difference in this game compared to the others - did sierra re-port their SCI-interpreter code for every different game so this particular one just got a dodgy SCI1-port.
It uses SCI1 http://wiki.scummvm.org/index.php/Si...1_.28middle.29

Last edited by ascp; 23 December 2015 at 16:06.
ascp is offline  
Old 22 December 2015, 22:43   #5
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,790
Would it work with Novacoder's Scummvm?
Retro1234 is offline  
Old 23 December 2015, 00:54   #6
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by jotd View Post
BUT, when I check the loaded segments, I'm seeing that some segments are loaded into chip memory:
- segment 1, segment 53

but:

- there are plenty of fastmem available (up to 2MB)
- "multiview" on the executable / disassemble does not show any "CHIP"-forced section (I already boosted some games like UBBCD32 by somehow clearing the chip flag)

Strange!! any ideas?
The only possible reason for this is that there's no fast mem block with suitable size available (due to fragmentation) so the data will be loaded into chip mem.
StingRay is offline  
Old 23 December 2015, 12:04   #7
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,333
With 2mb of fast ram? Doubt it. I could log the allocmem calls.
jotd is offline  
Old 31 December 2015, 10:24   #8
wXR
Registered User
 
Join Date: Mar 2009
Location: New York
Posts: 552
Could Revolution's rather fast and awesome engine from King's Quest VI be applied to this? Is it a full SCI1.1 engine?
wXR is offline  
Old 06 January 2016, 14:38   #9
ascp
Pastafarian
 
Join Date: Sep 2010
Location: Uppsala/Sweden
Posts: 290
I did a speed comparison between the whdinstalled version and a regular installed version on my a1200, aca1233 with game settings full speed, lowest details, and the whdload version is much slower, whereas the regular install is playable. So, something seems to be odd with the install:

Regular install no whd. https://vid.me/pmxj

Whdinstalled version, same machine, same ingame settings (also tried with NOCACHE etc)
https://vid.me/0zQa



Quote:
Originally Posted by wXR View Post
Could Revolution's rather fast and awesome engine from King's Quest VI be applied to this? Is it a full SCI1.1 engine?
I dont think so, they used their own virtual reality engine for KQ VI and just ported the game to that - so KQ VI is one of the few (the only?) Sierra Amiga games that doesn't use an SCI-engine. Oh, I think there's another one, wasn't Sierra Soccer written in Amos.

But as video comparison shows above the non whd-version is playable with an accelarator and mem, its just the current whdversion that has some kind of issue.
ascp is offline  
Old 19 January 2016, 07:08   #10
dlfrsilver
CaptainM68K-SPS France
 
dlfrsilver's Avatar
 
Join Date: Dec 2004
Location: Melun nearby Paris/France
Age: 46
Posts: 10,500
Send a message via MSN to dlfrsilver
must be also noted that this game uses 64 colors (written on the floppy disks).
dlfrsilver is offline  
Old 19 January 2016, 07:49   #11
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by jotd View Post
With 2mb of fast ram? Doubt it. I could log the allocmem calls.
2 MB is not that much so fragmentation is easily possible. The only other possible reason are memory allocations to chip so logging the AllocMem() calls is not a bad idea.

Quote:
Originally Posted by jonathan View Post
Whdinstalled version, same machine, same ingame settings (also tried with NOCACHE etc)
Try with CACHE instead of NOCACHE, maybe it helps.
StingRay is offline  
Old 19 January 2016, 08:21   #12
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,333
And novbrmove
jotd is offline  
Old 19 January 2016, 15:38   #13
Amiga1992
Registered User
 
Join Date: May 2001
Location: ?
Posts: 19,646
There was an open source AGI interpreter laying about, maybe it's best for someone to work on that like Stingray said.
Amiga1992 is offline  
Old 14 February 2016, 15:05   #14
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 873
If the game runs faster without WHDLoad than with there must be something wrong with the install.
A quick look shows that the game code lies in Chipmem and caches are only enabled for Expmem. So this game runs without caches under whd.
Games seems to do strange memory allocations before LoadSeg the SCI.

Attached Slave should be faster because caches enabled.
Attached Files
File Type: slave ConquestsLongbow.slave (3.7 KB, 92 views)

Last edited by Wepl; 14 February 2016 at 15:37.
Wepl is offline  
Old 15 February 2016, 17:09   #15
ascp
Pastafarian
 
Join Date: Sep 2010
Location: Uppsala/Sweden
Posts: 290
Quote:
Originally Posted by Wepl View Post
If the game runs faster without WHDLoad than with there must be something wrong with the install.
A quick look shows that the game code lies in Chipmem and caches are only enabled for Expmem. So this game runs without caches under whd.
Games seems to do strange memory allocations before LoadSeg the SCI.

Attached Slave should be faster because caches enabled.
Yes, it's faster now! but still not as fast as the original without whdload.
It's now approx. as fast as in-between to two videos I posted to above. (Original vs First Whdinstall).
Oh, it's ok to play this from harddisk without whdload anyway, but maybe theres an interesting problem hiding.
ascp is offline  
Old 15 February 2016, 19:55   #16
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 873
The exe is still in chip but this should make less difference than half speed.
How much memory do you have?
Are you using latest whdload (because since 18.0 it enables burst too)?
Wepl is offline  
Old 16 February 2016, 21:43   #17
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,333
This is strange: I just disassembled the game, and no "CHIP" section appeared at all.
The memory is more than enough: $80000 chip, $C0000 fast. Even with $200000 fast the section is still in chip.
The key issue with speed is code in chip, that's clear.
Maybe game allocates a lot fastmem and ends up in chipmem!!

Edit: I think I found something. I compared the resource.cfg file and it had some strange (minHunk/minChip) parameters that I did not see in other sierra games (codename iceman for example).
Like Bert said, it seems like the "robin" launcher checks memory (using AvailMem) and allocates it until there's nothing left!! I have a hunch this is caused by the extra parameters (minHunk/minChip)

minHunk=255
minChip=255

I removed the "255" lines. Now file contents is just:

videoDrv=
soundDrv=amigasnd.drv
kbdDrv=
mouseDrv=YES

I scanned chipmem before and after my fix. Seems like before my fix, there were code in the $52000 region: jumptable addressing up to $7xxxx in chipmem, mixed with jumps in fastmem, like the game ran out of fastmem during the allocation process.
After my fix, the code in chipmem is nowhere to be found, replaced by data.
I did not try on a real amiga so I cannot compare the speed, but that seems to be a good lead. Can someone test it with the new cfg file?

Last edited by jotd; 16 February 2016 at 22:10.
jotd is offline  
Old 17 February 2016, 19:58   #18
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 873
It moves the code in fast
Cannot tell much about the speed as I think this is game is slow anyway.
On my 68060 there are some minor blitter bugs, probably missing waits.
I think for full speed it should be checked that also data is going to fast mem as far as possible (MEMFREE option in kickemu).
Wepl is offline  
Old 17 February 2016, 22:17   #19
ascp
Pastafarian
 
Join Date: Sep 2010
Location: Uppsala/Sweden
Posts: 290
Quote:
Originally Posted by Wepl View Post
The exe is still in chip but this should make less difference than half speed.
How much memory do you have?
Are you using latest whdload (because since 18.0 it enables burst too)?
Latest whd, memory 128 mb. ACA1233 accelerator.

Doing as Jotd suggested and removing
minHunk=255
minChip=255

seems to make it a bit more responsive, still not as "fast" as the install without whdload on the same computer.
(Regular install no whd. https://vid.me/pmxj - Robin can walk quite fast.)

Last edited by ascp; 17 February 2016 at 22:32.
ascp is offline  
Old 18 February 2016, 02:01   #20
dlfrsilver
CaptainM68K-SPS France
 
dlfrsilver's Avatar
 
Join Date: Dec 2004
Location: Melun nearby Paris/France
Age: 46
Posts: 10,500
Send a message via MSN to dlfrsilver
indeed, the speed is good in your video !
dlfrsilver 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
Castles II: Siege & Conquest - floppy version: does it exist? lilalurl HOL data problems 0 17 February 2013 14:45
Conquests Of The Longbow mai request.Old Rare Games 5 19 September 2010 18:07
[Found: Colonial Conquest II] Looking for a space/strategy/empire game Fenik Sar Looking for a game name ? 3 08 December 2009 23:40
Conquest of the Longbow Fred the Fop support.Games 8 06 June 2007 18:16
[found] -> Colonial Conquest 2 (was: Space colonisation game) IanMac Looking for a game name ? 12 28 December 2003 17:45

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 05:05.

Top

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