It is currently Wed Dec 12, 2018 3:55 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: Sun Dec 02, 2018 8:03 am 
Offline
User avatar

Joined: Sat Sep 07, 2013 2:59 pm
Posts: 1765
Today, I saw that the game "Soccer" runs at merely 30 fps, having a lag after every frame.
And I always wondered why this game is so slow.

When I set the emulator to a speed of 200 %, it plays quite decently.

So, my question: Would it be possible to hack the game to work at 60 fps?
Is there really so much going on in the game logic that they couldn't fit it all into one frame?

I mean, sure, you have to calculate a bunch of characters, but it's the same with "Ice Hockey", and that game doesn't lag.

_________________
Available now: My game "City Trouble".
Website: https://megacatstudios.com/products/city-trouble
Trailer: https://youtu.be/IYXpP59qSxA
Gameplay: https://youtu.be/Eee0yurkIW4
German Retro Gamer article: http://i67.tinypic.com/345o108.jpg


Top
 Profile  
 
PostPosted: Sun Dec 02, 2018 8:35 am 
Offline
User avatar

Joined: Thu Aug 13, 2015 4:40 pm
Posts: 325
Location: Rio de Janeiro - Brazil
This has been done with a few games. Ghosts'n Goblins and Super Pitfall comes to mind. In my case, it took several months to understand the game's code, but I was learning assembly at the same time.
For such a simple game as soccer it may be very simple.

_________________
https://twitter.com/bitinkstudios <- Follow me on twitter! Thanks!


Top
 Profile  
 
PostPosted: Sun Dec 02, 2018 10:20 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 2352
Location: DIGDUG
You don't have to change much.

If it plays better at 200%, perhaps just doubling the speed of every object would be enough. Like, if they move 1 pixel per 1 game frame (2 actual frames), have them move 2 pixels.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Sun Dec 02, 2018 11:17 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 11011
Location: Rio de Janeiro - Brazil
That won't make animations smoother though, if the game really updates the screen at 30Hz. In fact it will probably look choppier, since more ground will be covered without you seeing.


Top
 Profile  
 
PostPosted: Sun Dec 02, 2018 11:39 am 
Offline
User avatar

Joined: Sat Sep 07, 2013 2:59 pm
Posts: 1765
dougeff wrote:
If it plays better at 200%, perhaps just doubling the speed of every object would be enough.

But isn't there the danger that this will throw off the game logic?

And yeah, what tokumaru said as well: Now you have one frame where the character does nothing and one frame where he walks twice the distance. I doubt this is visually appealing.


Is there a disassembly of the game somehwere?

_________________
Available now: My game "City Trouble".
Website: https://megacatstudios.com/products/city-trouble
Trailer: https://youtu.be/IYXpP59qSxA
Gameplay: https://youtu.be/Eee0yurkIW4
German Retro Gamer article: http://i67.tinypic.com/345o108.jpg


Top
 Profile  
 
PostPosted: Mon Dec 03, 2018 8:29 am 
Offline
User avatar

Joined: Sat Sep 07, 2013 2:59 pm
Posts: 1765
If somebody would be able to do this, hacking "Soccer" into a 60 fps game: What do you want to have for it? How much would I have to pay you, so that you create this hack?

_________________
Available now: My game "City Trouble".
Website: https://megacatstudios.com/products/city-trouble
Trailer: https://youtu.be/IYXpP59qSxA
Gameplay: https://youtu.be/Eee0yurkIW4
German Retro Gamer article: http://i67.tinypic.com/345o108.jpg


Top
 Profile  
 
PostPosted: Mon Dec 03, 2018 12:52 pm 
Offline

Joined: Sat Nov 18, 2017 9:15 pm
Posts: 18
I glanced at this a little and it looks like the game isn't lagging, but is actually programmed to do different work on even and odd frames. For 60 FPS, the diverging code paths would have to be unified and possibly optimized to avoid lagging.


Top
 Profile  
 
PostPosted: Mon Dec 03, 2018 1:50 pm 
Offline
User avatar

Joined: Sat Sep 07, 2013 2:59 pm
Posts: 1765
Interesting.

Can you see how many percent of the total available time for game logic each of the two branches needs?

If both branches need, for example, 90 % of the available time, it should be pretty hard top increase the speed.
But if both only need 51 %, then it might be possible to optimize them, so that they only require 50 % or less, so that both branches can be processed in every frame.

_________________
Available now: My game "City Trouble".
Website: https://megacatstudios.com/products/city-trouble
Trailer: https://youtu.be/IYXpP59qSxA
Gameplay: https://youtu.be/Eee0yurkIW4
German Retro Gamer article: http://i67.tinypic.com/345o108.jpg


Top
 Profile  
 
PostPosted: Mon Dec 03, 2018 2:10 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 11011
Location: Rio de Janeiro - Brazil
Maybe that's just me, but I wouldn't feel comfortable "optimizing" someone else's game, specially without proper source code. You'd have to get to know the engine really well in order to know what can and can't be changed in order to not introduce bugs all over the place. Also, I doubt there are many trivial optimizations just waiting to be made, otherwise the original programmers would probably already have made them.

Then again, I'm not much of a hacker... I absolutely hate meddling with code I didn't write or don't fully understand.


Top
 Profile  
 
PostPosted: Mon Dec 03, 2018 4:21 pm 
Offline
User avatar

Joined: Sun Sep 19, 2004 9:28 pm
Posts: 3722
Location: Mountain View, CA
Sounds to me like a romhacking job, in which case, you should ask folks who do exactly that. Not sure which of their boards is more relevant, but:

http://www.romhacking.net/forum/index.php?board=15.0
http://www.romhacking.net/forum/index.php?board=4.0

Have fun.


Top
 Profile  
 
PostPosted: Mon Dec 03, 2018 4:47 pm 
Offline
User avatar

Joined: Sat Sep 07, 2013 2:59 pm
Posts: 1765
Thanks. I wrote a post there. Let's see if someone answers.

_________________
Available now: My game "City Trouble".
Website: https://megacatstudios.com/products/city-trouble
Trailer: https://youtu.be/IYXpP59qSxA
Gameplay: https://youtu.be/Eee0yurkIW4
German Retro Gamer article: http://i67.tinypic.com/345o108.jpg


Top
 Profile  
 
PostPosted: Tue Dec 04, 2018 8:33 am 
Offline
User avatar

Joined: Sat Sep 07, 2013 2:59 pm
Posts: 1765
O.k., my chance to find a ROM hacker has declined immensely:

http://www.romhacking.net/forum/index.php?topic=6734.0
Quote:
Hack requests and ideas belong here.
Translation requests should be directed here.

Any requests outside of these areas will be deleted, and you will be warned. This includes offering money or other incentives for others to do the work for you.

Thank you for your cooperation.


You know where the link leads to? Not a sub forum, oh no. A single 270 pages long thread.
Yeah, I'm sure that's the right place to ask for a specific ROM hack work. A single post buried deep into a huge generic thread. :roll:

What are these people even thinking? A single thread? Seriously?

_________________
Available now: My game "City Trouble".
Website: https://megacatstudios.com/products/city-trouble
Trailer: https://youtu.be/IYXpP59qSxA
Gameplay: https://youtu.be/Eee0yurkIW4
German Retro Gamer article: http://i67.tinypic.com/345o108.jpg


Top
 Profile  
 
PostPosted: Wed Dec 05, 2018 2:06 am 
Offline
User avatar

Joined: Thu Sep 15, 2016 6:29 am
Posts: 827
Location: Denmark (PAL)
Maybe they are getting so flooded with random people that come in and ask for hacks that the only way to handle it was to throw them into a thread to keep it from taking over the entire list of active topics?

If someone is interested in picking it up, I'm sure you'll get a response from the thread. If no one is interested in doing a hack for you, they won't be looking in the thread anyway.


Top
 Profile  
 
PostPosted: Wed Dec 05, 2018 2:28 am 
Offline
User avatar

Joined: Sat Sep 07, 2013 2:59 pm
Posts: 1765
Sumez wrote:
Maybe they are getting so flooded with random people that come in and ask for hacks that the only way to handle it was to throw them into a thread to keep it from taking over the entire list of active topics?

Erm, sub forum maybe? "Hacks and translation requests"?

Sumez wrote:
If someone is interested in picking it up, I'm sure you'll get a response from the thread.

Because every active member always reads the entirety of that thread? Wall of text is suddenly not an issue anymore?
A named thread list would have no advantage over a single thread that lumps requests and meta discussion into one linear stream of posts?

_________________
Available now: My game "City Trouble".
Website: https://megacatstudios.com/products/city-trouble
Trailer: https://youtu.be/IYXpP59qSxA
Gameplay: https://youtu.be/Eee0yurkIW4
German Retro Gamer article: http://i67.tinypic.com/345o108.jpg


Top
 Profile  
 
PostPosted: Wed Dec 05, 2018 7:22 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 20854
Location: NE Indiana, USA (NTSC)
DRW wrote:
Sumez wrote:
Maybe they are getting so flooded with random people that come in and ask for hacks that the only way to handle it was to throw them into a thread to keep it from taking over the entire list of active topics?

Erm, sub forum maybe? "Hacks and translation requests"?

It looks like a workaround for forum software that does not support subforums.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group