-
November 23rd, 2003, 07:03 PM
#1
Program runs too fast on my pc
Hi
I have been trying to write a game in C++ so far the code itself is going great, not having many problems at all.
But heres the problem
When i run the program on my pc it runs at a normal speed.
Yet when i send it to someone else it either doesn't run at all or it runs really really slow (huge difference).
Im programming using Visual Studio.net 2003 and using GLUT.
Can anyone help. can send exe or code if it will help.
Cheers again
Chris
Boycee
-
November 23rd, 2003, 07:34 PM
#2
Thats a fact of life... not all computers are the same speed. You best bet is optimize your code. You may also want to make the game playable on lower speed computers by not making esential functions like movement depend on frame rates (i.e. multithread).
-
November 23rd, 2003, 07:37 PM
#3
thats the thing though, this aint a small difference this is huge.
so far i have tested on 5 mates pc's
Laptop p4 2.0 == SLOW
pc amd 2200 == slow
pc p3 3.0ghz == fast
pc amd 2100 == fast
pc p4 1.8 == fast (( MINE ))
also the results make no sense.
??
Boycee
-
November 23rd, 2003, 08:15 PM
#4
Their OS is probably screwed up
-
November 23rd, 2003, 08:18 PM
#5
ok so there must be a way round this you say threading ?
sounds like an option.
Im also getting the problem when there are less things on the screen it runs faster too. (ie less collisions to check for)
Would threading solve this too ?
If so any links or pointers to helpful web pages would be great, i tried google for threads but cant find any that go into "threads of dummies" detail.
Cheers again people.
Boycee
-
November 23rd, 2003, 10:05 PM
#6
you might want to check the display settings ...
What are the number of pixels in each color ?
What is the color depth ?
-
November 23rd, 2003, 10:06 PM
#7
you might want to check the display settings ...
What are the number of pixels in each color ?
What is the color depth ?
-
November 24th, 2003, 06:20 AM
#8
RGB Colour
and there is only 3 colours used so far.
Boycee
-
November 24th, 2003, 10:29 AM
#9
But what is the display color depth on the
computers that it runs slow on ? true color (24 bit) ?
high color ?
-
November 24th, 2003, 10:32 AM
#10
oh sorry same colour depth as mine. 24bit.
I have uploaded the game to my ftp download it if you want to have a look.
What i think i have decided to do is make the whole thing a thread and add a sleep function that is equal to start end time - start time. And sleep for that amount inbetween each frame update to ensure things move that the correct rate.
Well i think this may be the right way to go....
Boycee
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|