single game pingpong mame beta 2 full sound speed out now
-
- DC Developer
- Posts: 2648
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Sun Mar 24, 2002 7:48 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
single game pingpong mame beta 2 full sound speed out now
well thanks to warmtoe's help and skill in coding i now have sound
check the site or read me for more details
get beta2 only as beta one had no sound
frameskip sound few other features
http://dcdevr2k2.topcities.com/
just to let you know im still working on stuff ive been trying to slow this down not up but made it a tad faster due to cpu_slices some games can be speeded up and down using this hardcoding it into the driver for EG
this was by request for UberJim not all things made it in this version
geting there
check the site or read me for more details
get beta2 only as beta one had no sound
frameskip sound few other features
http://dcdevr2k2.topcities.com/
just to let you know im still working on stuff ive been trying to slow this down not up but made it a tad faster due to cpu_slices some games can be speeded up and down using this hardcoding it into the driver for EG
this was by request for UberJim not all things made it in this version
geting there
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?
This sounds great. Now I don't really know anything about programming, but I will add my stupid ideas in, and maybe they will spark something for you. What if you were to add another #include? Something that wouldn't be usefull to the program, but would take up memory and maybe slow it down a little bit? Or what if you were to have a global variable that was just there to hold integers, you then had a while statement that counted something in the program and resetted everytime it hit 1000, just something silly that may slow the program a little bit. Also, what if a sleep() was added? I would just like to re-state the fact that I am no programmer, I was just hoping to spark an idea with this sillyness.
-
- DC Developer
- Posts: 2648
- Joined: Sun Mar 24, 2002 7:48 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
sounds
Sounds like a plan next version should be slower
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?
I actually got some tips from someone who helped code ZSNES for PC, though I don't totally understand it, I will put it here.
I would just like to add that I can't believe I actually talked to Pharos, that is just amazing, that made my day. I actually had a conversation with one of the emu coding elite. Now if only I were to have a phone conversation with Steve Snake.[2:03pm]?@ Pharos_? UberJim: use gettimeofday to find out the seconds/useconds. when the cycle count on the virtual cpu in mame (yes, i helped code zsnes) shows that the real world has passed less time then the virtual cpu would have, and you have no events to process such as updating the video, then you sleep the difference with usleep or select
[2:04pm]?@ Pharos_? most of the time we sync on the video card as a delay, because video updates are slow, so we allow more frames per second when the emulating system is running faster then all the processing needed to emulate the virtual system
[2:04pm]?@ Pharos_? and we skip frames when the system is too slow
[2:06pm]?@ Pharos_? select would be smartest, because sleep actually uses alarm() to produce a signal then it waits for SIGALRM, which means anything else that may use alarm can be affected, and if a different signal occurs it will wake up as well
[2:08pm]?@ Pharos_? select is SUPPOSE to add a timer event inside the kernel seperate from alarm system, it can still be woke up with a signal but you reduced the assumption channel, and you correct any timing issues with gettimeofday before and sometimes after select
-
- DC Developer
- Posts: 2648
- Joined: Sun Mar 24, 2002 7:48 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
VERY COOL and yeah steve snake or dan potter would be good lol
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?
-
- DC Developer
- Posts: 2648
- Joined: Sun Mar 24, 2002 7:48 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
Yes it help thanks for that ill try doing that soon see how it turns out
thanks for your help
thanks for your help
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?
-
- DC Developer
- Posts: 9951
- Joined: Sun Dec 30, 2001 9:02 am
- Has thanked: 0
- Been thanked: 1 time
If it's supposed to run at 60FPS and it actually runs faster, I know of a better way to slow it down.
First off, you emulate a single frame using whatever... That's the emulator
Then, you wait for the video hardware to finish refreshing.
Some code from nxDoom (by way of crt0's DoomDC) which does this:
Hope that helps.
First off, you emulate a single frame using whatever... That's the emulator
Then, you wait for the video hardware to finish refreshing.
Some code from nxDoom (by way of crt0's DoomDC) which does this:
Code: Select all
void WaitVBL()
{
volatile uint32 *vbl = ((volatile uint32 *)0xa05f8000) + 0x010c/4;
while (!(*vbl & 0x01ff))
;
while (*vbl & 0x01ff)
;
}
-
- DC Developer
- Posts: 434
- Joined: Sat Mar 23, 2002 6:57 pm
- Location: U S A
- Has thanked: 0
- Been thanked: 0
- Contact:
I got one .jeffma wrote:whats this game?
do you have a screen shot for me?
Code: Select all
|
(=) |
If you think typing 'make' is hard, forget coding.
If you can't figure out the commands to DC-Tool, forget coding.
If you think coding is as easy as typing printf("Hello World\n"); , shoot yourself.
If you can't figure out the commands to DC-Tool, forget coding.
If you think coding is as easy as typing printf("Hello World\n"); , shoot yourself.
-
- DC Developer
- Posts: 2648
- Joined: Sun Mar 24, 2002 7:48 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
how about
works fine to slow it down as thats is just cpu slices but its still to fast
i use what's been posted ill find a way to slow it
thanks later for now
Code: Select all
60, DEFAULT_60HZ_VBLANK_DURATION,
58, change from 1 to 58 its now its slow but still to fast
0,
i use what's been posted ill find a way to slow it
thanks later for now
Last edited by reaper2k2 on Tue Oct 29, 2002 9:53 pm, edited 2 times in total.
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?
-
- DC Developer
- Posts: 2648
- Joined: Sun Mar 24, 2002 7:48 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
OK
Thanks for the help the speed problem is now fixed
its about right now sound is a little better as well
http://dcdevr2k2.topcities.com/
thats it for now so get the last one for super speed or this one for normal speed like or close to the real machine
its about right now sound is a little better as well
http://dcdevr2k2.topcities.com/
thats it for now so get the last one for super speed or this one for normal speed like or close to the real machine
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?
http://r2k2gate.topcities.com *dev site and my releases*
Im' a Commodorian are you?