Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (526)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
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 899 times)
0 Members and 1 Guest are viewing this topic.
Offline Eliwood

Junior Devvie




Stencyl


« 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: 833
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.

DP

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




Stencyl


« 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

DP

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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

toopeicgaming1999 (72 views)
2014-11-26 15:22:04

toopeicgaming1999 (62 views)
2014-11-26 15:20:36

toopeicgaming1999 (15 views)
2014-11-26 15:20:08

SHC (29 views)
2014-11-25 12:00:59

SHC (27 views)
2014-11-25 11:53:45

Norakomi (32 views)
2014-11-25 11:26:43

Gibbo3771 (27 views)
2014-11-24 19:59:16

trollwarrior1 (40 views)
2014-11-22 12:13:56

xFryIx (78 views)
2014-11-13 12:34:49

digdugdiggy (56 views)
2014-11-12 21:11:50
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!