English Amiga Board


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

 
 
Thread Tools
Old 07 May 2019, 07:03   #1
Puggsy
Banned
 
Join Date: May 2018
Location: Toronto
Posts: 158
Exclamation Saint Dragon framerate fix

It looks like this game skips a lot of frames when the screen gets busy no matter how fast the Amiga I run the game on is.

Can anyone fix the whdload install to remove this frame skipping? It’s the only thing dragging down this otherwise great conversion. You can loose just by shooting when you have a lot of power ups because the screen rate skips so much you end up nailed by a bullet.
Puggsy is offline  
Old 07 May 2019, 10:41   #2
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,986
Quote:
Originally Posted by Puggsy View Post
It looks like this game skips a lot of frames when the screen gets busy no matter how fast the Amiga I run the game on is.

Can anyone fix the whdload install to remove this frame skipping? It’s the only thing dragging down this otherwise great conversion. You can loose just by shooting when you have a lot of power ups because the screen rate skips so much you end up nailed by a bullet.
Nope.

Only way to fix it would be to recode every single blitter routine to use the processor if a 030+ is detected.

The game heavily relies on the blitter to redraw everything, and it would be no trivial task to recode all those routines.

It would probably be quicker to take the Atari ST version and use that as the base version as that only uses the processor for its redrawing, but I gather its not as good looking as the Amiga version.
Galahad/FLT is offline  
Old 07 May 2019, 12:37   #3
haynor666
retro maniac
 
haynor666's Avatar
 
Join Date: May 2002
Location: Tarnobrzeg/Poland
Age: 45
Posts: 1,748
I know it not the best answer but why don't You try arcade version? Does amiga version apart from better resolution has something better than arcade original?
haynor666 is offline  
Old 07 May 2019, 13:25   #4
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
An approach different from the usual Amiga games concerning the crowding on screen, probably due to the ST origins and the considerable amount of objects on the screen.
So would it be tolerable even just not having the frame-skip?

I state that I have not looked at the game's code so I don't know if it is possible, but a solution would be to switch from the frameskip mode to the no-skip one . Logically this would lead to having a massive amount of slowdows and speed changes (also possible to attenuate it , but only with significant changes to the code).
Can someone verify this possibility by setting the 'immediate blitter' option in emulation? (if the game works properly then there is a good chance)

Certainly I don't have time to look at it now, but it would be interesting.
ross is offline  
Old 08 May 2019, 12:11   #5
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
Just to clarify.
My answer and Galahad's are absolutely not in opposition.
His approach would be to 'exceed' the limits by rewriting the code to use a software system for object blitting
(rendering in fastram with a fast processor and using the chipram as a frame buffer or something in between).
In that case the engine could maintain a decent framerate.

My proposal, on the other hand, would not improve the frame-rate in any way, but it would simply delay the refresh (making duplicate frames).

In any case it'll remains a game designed for A500 and you can not expect more than that in this conversion.
Any kind of drastical change will require too time that maybe the coders/patchers prefer to use for other
ross is offline  
Old 10 May 2019, 16:26   #6
Puggsy
Banned
 
Join Date: May 2018
Location: Toronto
Posts: 158
Hello, and sorry for the late reply.

Ross is absolutely correct, I never suggested for the whole game to be redone, as I said, the problem is the frame skipping. When there's a lot of stuff going on, you could get hit by bullets because so many frames were skipped. I rather have a slow down than that.

So switching it off would be a great temporary solution, yes please Ross do it! I tried in winUAE and you are correct, "immediate blits" makes the game silky smooth perfect!

Another idea: the main problem happens when your dragon has its firepower maxed out. Maybe it can be fixed so maxing out doesn't create as many objects? I really don't know what they were thinking when they made this.

For the time being slowdown is better than frames skipped.

Quote:
Originally Posted by haynor666 View Post
I know it not the best answer but why don't You try arcade version?
That's not an answer at all. I am playing in my Amiga, not an emulator
Puggsy is offline  
Old 10 May 2019, 19:04   #7
haynor666
retro maniac
 
haynor666's Avatar
 
Join Date: May 2002
Location: Tarnobrzeg/Poland
Age: 45
Posts: 1,748
I know. I used to play using groovymame on CRT screen. Looks and works fantastic.
haynor666 is offline  
Old 11 May 2019, 02:07   #8
Mrz
Banned
 
Join Date: Dec 2016
Location: I
Posts: 338
if you want 60 fps smooth gameplay try the original arcade version using mame
on the AMiga500 with its hardware limitation is basically impossible
Mrz is offline  
Old 14 May 2019, 23:55   #9
Puggsy
Banned
 
Join Date: May 2018
Location: Toronto
Posts: 158
I asked for a very specific fix/patch to be done. I never said I wanted "arcade perfect" or "60FPS', you are making things up out of thin air. You people are trolling.
Don't you have better things to do in EAB or life than to subvert someone's thread with unrelated nonsense?
Puggsy is offline  
Old 16 May 2019, 23:12   #10
Hewitson
Registered User
 
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 41
Posts: 3,772
Quote:
Originally Posted by Puggsy View Post
You can loose just by shooting when you have a lot of power ups because the screen rate skips so much you end up nailed by a bullet.


I have experienced this as well. Not many games where having lots of power ups can make it harder, but on this one it can.
Hewitson is offline  
Old 16 May 2019, 23:30   #11
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,410
Saint Dragon is an interesting game on the Amiga.

Given enough power ups, some of your shots become partly/mostly invisible. It's also an ST port that manages to be slower than the 68000 ST version, while it still uses the Blitter and sprite hardware on the Amiga. I've always found that very intriguing because achieving that combination (use the hardware and still end up slower than a software solution) is not actually easy.

Makes me wonder what decisions were made and why.

The extra slow down with more power ups... That seems like I've noticed that before on some ST ports. Doesn't Xenon 2 also do this?
roondar is offline  
Old 16 May 2019, 23:43   #12
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,986
Quote:
Originally Posted by roondar View Post
Saint Dragon is an interesting game on the Amiga.

Given enough power ups, some of your shots become partly/mostly invisible. It's also an ST port that manages to be slower than the 68000 ST version, while it still uses the Blitter and sprite hardware on the Amiga. I've always found that very intriguing because achieving that combination (use the hardware and still end up slower than a software solution) is not actually easy.

Makes me wonder what decisions were made and why.

The extra slow down with more power ups... That seems like I've noticed that before on some ST ports. Doesn't Xenon 2 also do this?
I don't think the ST version has half the action onscreen the Amiga version has, I can't see how a sprite multiplexing routine can be slower than software plotting bitmap bobs.
Galahad/FLT is offline  
Old 16 May 2019, 23:56   #13
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,410
Quote:
Originally Posted by Galahad/FLT View Post
I don't think the ST version has half the action onscreen the Amiga version has, I can't see how a sprite multiplexing routine can be slower than software plotting bitmap bobs.
Oh but I agree it shouldn't be slower.

It's just that I've seen a direct comparison on the Retro Core YouTube channel a while back and both versions seemed very similar, but the ST version quite obviously ran faster/smoother.

And that puzzles me, hence my comment.

Last edited by roondar; 17 May 2019 at 00:35.
roondar is offline  
Old 17 May 2019, 00:11   #14
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,986
Quote:
Originally Posted by roondar View Post
Oh but I agree it shouldn't be slower.



It's just that I've seen a direct comparison on the Retro Core YouTube channel a while back and both versions seemed very similar, but the ST version quite obviously ran faster/smoother.


And that puzzles me, hence my comment.
The guy that runs the Retro Core channel is a bit of a noob when it comes to ST and Amiga emulation, frequently not getting the settings right.

I wouldn't judge the performance of any ST game over Amiga on a Youtube video because its so easy to fudge the results by not ticking the right boxes.
Galahad/FLT is offline  
Old 17 May 2019, 00:33   #15
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,410
Well, after viewing the video I thought the same, because at that time he did seem a bit biased against the Amiga. So I looked at the performance on my A500. As far as I could tell, his Amiga footage was accurate to what my A500 showed.

That said, I don't have an Atari ST to run the game on so can't tell if that footage was as correct.
roondar is offline  
Old 17 May 2019, 03:05   #16
turrican3
Moon 1969 = amiga 1985
 
turrican3's Avatar
 
Join Date: Apr 2007
Location: belgium
Age: 48
Posts: 3,913
Quote:
Originally Posted by ross View Post
My proposal, on the other hand, would not improve the frame-rate in any way, but it would simply delay the refresh (making duplicate frames).
Do you know a game which was patched like this even on an other platform ?? I try to understand if the result would be good ???
turrican3 is offline  
Old 17 May 2019, 10:18   #17
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
Quote:
Originally Posted by turrican3 View Post
Do you know a game which was patched like this even on an other platform ??
I really don't know.

Quote:
I try to understand if the result would be good ???
The result is the usual one on all platforms: slowdowns
It's a choice: maintain constant speed (so skip some frame) or mantain constant flow (so keep all frames).
Usually the simplest thing to do, from a coder perspective, is to mantain all frames.

-----

Back to Saint Dragon. Such a patch could be not trivial.

Should be considered the rendering time code and how it interact with all the remaining game engine
(technically could be complex, code contain also a dynamic floppy loader and a convoluted 'multi'-tasks management).
I looked at it very superficially (and now I have absolutely no time available) .
ross is offline  
Old 17 May 2019, 17:14   #18
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,986
Quote:
Originally Posted by ross View Post
I really don't know.


The result is the usual one on all platforms: slowdowns
It's a choice: maintain constant speed (so skip some frame) or mantain constant flow (so keep all frames).
Usually the simplest thing to do, from a coder perspective, is to mantain all frames.

-----

Back to Saint Dragon. Such a patch could be not trivial.

Should be considered the rendering time code and how it interact with all the remaining game engine
(technically could be complex, code contain also a dynamic floppy loader and a convoluted 'multi'-tasks management).
I looked at it very superficially (and now I have absolutely no time available) .
The dynamic loader is easy to circumvent, i've got Saint Dragon running completely from memory with no access to the floppy once loaded.
Galahad/FLT is offline  
Old 21 May 2019, 09:14   #19
turrican3
Moon 1969 = amiga 1985
 
turrican3's Avatar
 
Join Date: Apr 2007
Location: belgium
Age: 48
Posts: 3,913
Quote:
Originally Posted by ross View Post
The result is the usual one on all platforms: slowdowns
It's a choice: maintain constant speed (so skip some frame) or mantain constant flow (so keep all frames).
Usually the simplest thing to do, from a coder perspective, is to mantain all frames.
saint dragon use the frame skipping !!!

ok, then i saw better what you meant.
But for the slowdowns, an a1200 should be sufficient to maintain the framerate even if the game needs to be on the fast ram (thanks Galahad) ??
edited : or perhaps galahad meant from chip ram ??
turrican3 is offline  
Old 22 May 2019, 18:46   #20
Puggsy
Banned
 
Join Date: May 2018
Location: Toronto
Posts: 158
Quote:
Originally Posted by turrican3 View Post
But for the slowdowns, an a1200 should be sufficient to maintain the framerate even if the game needs to be on the fast ram (thanks Galahad) ??
This was already explained: the game uses the blitter and that creates the speed bottleneck, not the processor. game would need a major rewrite to use CPU instead of Blitter.
Puggsy 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
EAB/Lemon Super League 2018: Round 6 - Saint Dragon john4p EAB's competition 39 20 May 2018 01:00
Saint dragon optimus request.Old Rare Games 10 08 June 2010 22:14
Stunt Car Racer framerate john4p support.WinUAE 18 03 December 2008 21:45
Framerate limit not working when JIT enabled rsn8887 support.WinUAE 0 18 October 2008 05:09
Saint Dragon EURO AMIGA Flyer Storm / Sales Curve... ST Dragon Nostalgia & memories 2 12 September 2005 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 18:30.

Top

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