Developing Games

M

Mysterious

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----/
 
P

Pete C.

Mysterious said:
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----/

C++ provides no support for graphics, therefore graphics are off-topic here.
Try asking over at gamedev.net. Hint: SDL.

- Pete
 
M

markspace

Mysterious said:
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...
 
K

Karl Heinz Buchegger

Mysterious said:
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

There seems to be a serious problem on how you do things.
If 2.5 Mhz CPU's didn't have a problem with PacMan 25 years
ago, then your 2.5 Ghz CPU (which is 1000 times faster!) shouldn't
have any problem.

I'm quite sure that there is absolutely no need to dig down
to Hardware Interrupts just for programming a PacMan game.

Use a profiler to figure out where all the time goes.
 
M

Mabden

There's a book in on games programming that has the final product as a
Pac-Mac (tm) style game. It's current, in that I've seen it at technical
book stores, and even in mainstream bookstores like Barnes & Nobles (in the
USA). You can even sit and read it there, and have a latte and biscotti.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top