bonaf
Moldy Popcorn
Posts: 28
|
Post by bonaf on Dec 15, 2013 14:53:25 GMT -5
Hello everyone, I started a few weeks ago the development of a game using BasiEgaXorz. Here is a screenshot of what it currently looks like : The game will be quite like Super Smash Bros, with Master System characters. Btw I have a question I haven't been able to answer so far : I've tested my early version of the game on emulators and on real hardware (with a Mega Everdrive cart). Why does the game run really faster on PAL/50Hz systems than on NTSC/60Hz systems ? It seems counterintuitive at first glance... Is there something that adjusts the speed somehow ? Thanks in advance for your answers !
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 16, 2013 9:38:43 GMT -5
Are you using the TVSet command?
Command_TVSET: Syntax: TVSet <TV Type> Description: Sets NTSC 60hz or PAL 50hz video drawing mode. By default, all programs start out as NTSC. If <TV Type> is 0, NTSC is selected. If <TV Type> is 1, PAL is selected
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 16, 2013 10:42:42 GMT -5
Are you using the TVSet command? That doesn't have anything to do with his problem. The only thing that the TVSet command does is toggle the resolution between 320x224 and 320x240.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 16, 2013 14:39:30 GMT -5
Thanks for the clarification. I thought it had a chance to deal with the speed difference between PAL and NTSC. What strategy do you recommend?
Does he need a timer variable that gets calibrated before the main game engine starts?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 16, 2013 15:52:59 GMT -5
Thanks for the clarification. I thought it had a chance to deal with the speed difference between PAL and NTSC. No, maybe you're thinking of the TvType() function, but that's something else. What strategy do you recommend? I don't know what he's doing, so i can't give any suggestions. The only thing i can think of from his comment "the game run really faster on PAL" is that his loop might take longer than 16.67ms ( on NTSC ) but less than 20ms ( on PAL ), which could result the game to run at 30fps on NTSC and 50fps on PAL. But who knows, i can only guess.
|
|
bonaf
Moldy Popcorn
Posts: 28
|
Post by bonaf on Dec 17, 2013 3:00:49 GMT -5
The only thing i can think of from his comment "the game run really faster on PAL" is that his loop might take longer than 16.67ms ( on NTSC ) but less than 20ms ( on PAL ), which could result the game to run at 30fps on NTSC and 50fps on PAL. But who knows, i can only guess. So far the game engine is very light, I'm doubtful the game isn't running at full speed on both PAL and NTSC. F.L had the same problem with both his games and he suggested I adjust the speed with the sleep command depending on the return of tvtype().
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 17, 2013 9:52:17 GMT -5
Thanks for explaining a possible solution. I'm sure I'll have the same problem someday
|
|
bonaf
Moldy Popcorn
Posts: 28
|
Post by bonaf on Dec 17, 2013 16:05:45 GMT -5
After a few tests I think that moon has the right explanation : I added some code to slow down each loop. The game stills runs at the same speed on NTSC but is now a bit slower on PAL than on NTSC...
So It was probably 30fps/50fps before, and now 30fps/25 fps.
Thanks !
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 17, 2013 17:27:27 GMT -5
I added some code to slow down each loop. The game stills runs at the same speed on NTSC but is now a bit slower on PAL than on NTSC Keep in mind that the MegaDrive has a CPU that runs at "only" 7.67 MHz. When you're not careful with costly BASIC commands & functions, you'll reach its limit in no time And the approach FL suggested only works with games that are intended to run at less than 60 / 50 fps. For example, if you use "sleep 6" on NTSC machines and "sleep 5" on PAL, both will run at 10 fps ( as long as a frame update does not exceed 100ms ).
|
|
bonaf
Moldy Popcorn
Posts: 28
|
Post by bonaf on Jan 2, 2014 17:14:38 GMT -5
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 3, 2014 12:29:20 GMT -5
I like the variable jump. Keep it up!
|
|
|
Post by blabla on Jan 3, 2014 13:58:20 GMT -5
It is still very simple in my opinion (few moves , no guard etc...) and you should use another layer (plane) for texts. Keep up your work !
|
|
bonaf
Moldy Popcorn
Posts: 28
|
Post by bonaf on Jan 3, 2014 18:05:35 GMT -5
It is simple on purpose, I want to use only the movesets of the original characters. But perhaps I'll change my mind to make the game more interesting. Et merci pour le conseil concernant les textes, je vais voir ce que je peux faire...
|
|
bonaf
Moldy Popcorn
Posts: 28
|
Post by bonaf on Jan 27, 2014 17:48:58 GMT -5
|
|
zenac
Moldy Popcorn
Posts: 41
|
Post by zenac on Jan 28, 2014 9:38:35 GMT -5
Congratulations, bonaf! Nice progress! Good luck for you!
|
|