Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (601)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (649)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Game runs too quickly on a 64-bit machine?  (Read 1032 times)
0 Members and 1 Guest are viewing this topic.
Offline Eliwood

Junior Devvie


« Posted 2006-11-29 17:13:47 »

I've run my project through about 10-12 configurations of varying specifications and operating systems (500 MHz to 3.8 GHz, XP, 98, Linux, OSX), and they all ran perfectly. Then I tried it on a school computer which had an Opteron 64 processor and Nvidia Quadro Fx video processor, and it ran rather strangely. 2 problems:

1) It failed to initialize Open GL, which strikes me as odd.

2) It ran abnormally quickly using Java 2D, as if, say, you were using an emulator and turned on hyper mode. It's like the game was playing twice as fast.

Any ideas?

This isn't the only 64-bit machine that I've tried it on. It worked fine on consumer level computers bearing Athlon 64 or Core 2 Duo processors.

Offline Riven
« League of Dukes »

« JGO Overlord »

Medals: 1019
Projects: 4
Exp: 16 years

Hand over your head.

« Reply #1 - Posted 2006-11-29 17:44:09 »

Do you have a proper timing-mechanism, or are you running it flat out with update(dT)

If you have a proper ticker, the values of System.nanoTime() may be unreliable on multi-core CPUs...

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline darkprophet

Senior Devvie

Go Go Gadget Arms

« Reply #2 - Posted 2006-11-29 17:49:14 »

1) Are you using VSync? If so, its not reliable...

2) Are you using time based movement? Or tick based?

3) Some CPU's tend to "jump" forward in time when ticking and it seems random. The only solution is to use a lower resolution timer (so back to System.currentTimeMillis() or similar)...

Those 3 are the only ones I could think of...But we really do need more detail.


Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Eliwood

Junior Devvie


« Reply #3 - Posted 2006-11-29 19:22:19 »

1) Yes, vsync is enabled.

2) Time-based movement.

3) I'm fairly certain that I'm using millis, not the newer nano timer.

Offline darkprophet

Senior Devvie

Go Go Gadget Arms

« Reply #4 - Posted 2006-11-30 02:38:29 »

I have my suspicion that VSync isn't locking properly on the quadro, try adding some throttling code, I would suggest having a look at org.lwjgl.Sys.sync# methods, theres 3 of them that do the same thing differently....

If that also fails, then you've got one of those CPUs that jumps ahead of time for no reason Smiley


Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Jesse (14 views)
2015-07-29 04:35:27

Riven (36 views)
2015-07-27 16:38:00

Riven (18 views)
2015-07-27 15:35:20

Riven (21 views)
2015-07-27 12:26:13

Riven (12 views)
2015-07-27 12:23:39

BurntPizza (30 views)
2015-07-25 00:14:37

BurntPizza (41 views)
2015-07-24 22:06:39

BurntPizza (24 views)
2015-07-24 06:06:53

NoxInc (27 views)
2015-07-22 22:16:53

NoxInc (18 views)
2015-07-22 22:13:39
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!