Okay, it ran.
Mario walks around smoothly, didn't notice bad framerate at all.
When you scroll the map, it's supposed to be jittery because it moves by a full tile each time, right?
So, it ran good for me.
Search found 173 matches
- Thu Aug 12, 2010 2:06 pm
- Forum: Programming Discussion
- Topic: OpenGL lag problem
- Replies: 30
- Views: 2238
- Thu Aug 12, 2010 1:48 pm
- Forum: Programming Discussion
- Topic: OpenGL lag problem
- Replies: 30
- Views: 2238
Re: OpenGL lag problem
Missing lua51.dll.
- Thu Aug 12, 2010 1:13 pm
- Forum: Programming Discussion
- Topic: OpenGL lag problem
- Replies: 30
- Views: 2238
Re: OpenGL lag problem
I really don't know, that's why I suggested writing a minimal app that other people could try. It sounds like a pain in the ass but it might be a faster solution than looking for problems in your code that might not exist. Also, this function below proved to be 2x faster than your implementation on ...
- Thu Aug 12, 2010 12:53 pm
- Forum: Programming Discussion
- Topic: OpenGL lag problem
- Replies: 30
- Views: 2238
Re: OpenGL lag problem
If all else fails, you could throw together a small compilable example that demonstrates the really poor rendering speed and other people and I could try to run it and debug it. Sorry though, can't find the culprit
- Thu Aug 12, 2010 12:41 pm
- Forum: Programming Discussion
- Topic: OpenGL lag problem
- Replies: 30
- Views: 2238
Re: OpenGL lag problem
I'm kind of surprised the Surface's pixel array doesn't go out of bounds when you call glTexImage2D() but, whatever. Anyway, your rendering 32 bit textures with a 16 bit video mode, maybe this is causing slow rendering?
- Thu Aug 12, 2010 12:17 pm
- Forum: Programming Discussion
- Topic: OpenGL lag problem
- Replies: 30
- Views: 2238
Re: OpenGL lag problem
I can't see anything that would cause such slow speeds but, I do notice that you write to the SDL_Surface's width and height, which is read-only data according to the SDL doc. I don't know if that's dangerous or not. You aren't loading the image every frame, right? How do you initialize OpenGL?
- Thu Aug 12, 2010 11:54 am
- Forum: Programming Discussion
- Topic: OpenGL lag problem
- Replies: 30
- Views: 2238
Re: OpenGL lag problem
The code for the SDL/OpenGL textured polygon rendering app.N64vSNES wrote:Define the entire versions code?X Abstract X wrote:Can you post the entire SDL/OpenGL version's code?
- Thu Aug 12, 2010 11:48 am
- Forum: Programming Discussion
- Topic: OpenGL lag problem
- Replies: 30
- Views: 2238
Re: OpenGL lag problem
Can you post the entire SDL/OpenGL version's code?
- Sat Aug 07, 2010 2:26 pm
- Forum: Programming Discussion
- Topic: Loading tiles from a file
- Replies: 24
- Views: 2476
Re: Loading tiles from a file
Why does LoadLevel() take a parameter if you don't use it? Why are you drawing in your loading function? You should check to make sure the stream is valid before you try to read from it. You're wastefully comparing the value of temp more times than necessary. Use else if statements or a switch state...
- Thu Jul 29, 2010 5:51 pm
- Forum: Programming Discussion
- Topic: Help choosing compiler!
- Replies: 31
- Views: 2101
Re: Help choosing compiler!
Since he is migrating from Visual C++ Express I would assume he needs something for Windows.avansc wrote:I said free, not cross platform.
- Thu Jul 29, 2010 5:50 pm
- Forum: Programming Discussion
- Topic: Help choosing compiler!
- Replies: 31
- Views: 2101
Re: Help choosing compiler!
Yes, the IDE. Code::Blocks is open source software.IMANOOB11 wrote:BUT what do you mean the C:B source code, how would you include the C:B source code in your project, i dont get that.
Do you mean the code of the compiler/ide its self?
- Thu Jul 29, 2010 2:08 pm
- Forum: Programming Discussion
- Topic: Help choosing compiler!
- Replies: 31
- Views: 2101
Re: Help choosing compiler!
You answered your own question with: "I mean, i heard code blocks is commercially free, but if you use the source code of code blocks then you have to release the source code..." You don't have to worry about the specifics of the license unless you actually plan on using Code::Blocks' sour...
- Thu Jul 29, 2010 1:03 pm
- Forum: Programming Discussion
- Topic: Help choosing compiler!
- Replies: 31
- Views: 2101
Re: Help choosing compiler!
I've never recommended this before but, I think Dev-C++ might be a good choice for you then. *quiet laugh*IMANOOB11 wrote:Can you just give me some other ones?
I feel safer NOT using it.
- Wed Jul 28, 2010 12:32 pm
- Forum: Programming Discussion
- Topic: Enemy movement
- Replies: 14
- Views: 1286
Re: Enemy movement
You have the line: enemyCol.x = xVel - xVel; That is equivalent to setting enemyCol.x to 0. I don't think that's what you want to do, you want to negate xVel instead. That line should be replaced with: xVel = -xVel; You have another problem aswell. Each time you update you reset the velocities to be...
- Tue Jul 27, 2010 5:00 am
- Forum: Programming Discussion
- Topic: Enemy movement
- Replies: 14
- Views: 1286
Re: Enemy movement
Pastebin the entire source if it isn't too big and you still need help.