Mysterious wrote:
I want to develop a PacMan type Game in Graphics Mode 640x480 in C++.
But it is too slow when I tested just unfinihed program. Sometimes
it's slow in between the game. I have 2.4GHz Intel Processor and 256
RAM, not the limitation of my machine. Please tell me the method,
perhaps I have to use direct Hardware Interrupt for video output. If
anyone can provide me the game tutorials in c++ using ASM or........
My email is ra21vi<at>rediffmail.com
/---- Hey Guys, check this emal provider which offers 1GB mail
space----/
This is unfortunately off topic for C++, but you should really just look
around. There is a LOT of stuff on game programming, google for "game
programming tutorial" should get you started pretty well.
As was mentioned,
http://www.libsdl.org is a good place to start for
some fast library code.
Some more thoughts: Find out what flags your compiler uses to optimize
and try those.
ASM is compiler dependant, general books on ASM programming are
available though. I don't think a lot of people use ASM much anymore,
you might try this only as a last resort.
Find out how to profile your code. Post up the results here. C++
optimization might be on topic, and I'd love to see some people here
make suggestions for a real world example myself.
Also check out OpenGL, and DirectX. These are not portable, but if you
need raw speed (you shouldn't for pacman) you'll eventually have to
learn these APIs.
That's all I can think of for now...