deps
Still Fresh
Hi,
I'm finally getting into GP2X development.
As my first game, I decided tosteal borrow someone elses code. (With the original developers permission)
Problem is that it was written in Allegro, and I only had SDL up and running. So I rewrote parts of it and now have a fully functional version of the game on my GP2X.
Now for the problem... The game didn't have sound effects. So I added some using SDL_Mixer.
But it lags a lot! The game seems to run like it did before, but sound effects are playing much later than intended.
For example, if a unit is moved (it's a strategy game) I have a sound effect playing. In the code I play it as soon as the unit have moved and the screen is redrawn, but the sound is heard about a second later. Give or take some 100 milliseconds.
Is that "normal" for developers who use the code::blocks SDL bundle? Don't remember what RC it was, maybe 4. Found it here somewhere on this forum.
Or maybe it's a known bug in the SDL code for the GP2X?
Help! The game is almost finished, and I would hate to loose motivation because of some stupid sound issues! :lol:
I'm finally getting into GP2X development.
As my first game, I decided to
Problem is that it was written in Allegro, and I only had SDL up and running. So I rewrote parts of it and now have a fully functional version of the game on my GP2X.
Now for the problem... The game didn't have sound effects. So I added some using SDL_Mixer.
But it lags a lot! The game seems to run like it did before, but sound effects are playing much later than intended.
For example, if a unit is moved (it's a strategy game) I have a sound effect playing. In the code I play it as soon as the unit have moved and the screen is redrawn, but the sound is heard about a second later. Give or take some 100 milliseconds.
Is that "normal" for developers who use the code::blocks SDL bundle? Don't remember what RC it was, maybe 4. Found it here somewhere on this forum.
Or maybe it's a known bug in the SDL code for the GP2X?
Help! The game is almost finished, and I would hate to loose motivation because of some stupid sound issues! :lol: