Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (511)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
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  
  Removed..  (Read 2241 times)
0 Members and 1 Guest are viewing this topic.
Offline Jari Särö

Junior Duke


Medals: 1



« Posted 2011-05-14 06:52:08 »

Removed..
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2011-05-14 18:40:22 »

Do you have a game loop? If so, are you using a fixed timestep or a variable timestep?

Offline Jari Särö

Junior Duke


Medals: 1



« Reply #2 - Posted 2011-05-14 18:47:49 »

Removed..
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #3 - Posted 2011-05-14 18:54:55 »

No I believe sleep(4) is enough to max out your CPU since your loop is being run 250FPS Wink

Offline Jari Särö

Junior Duke


Medals: 1



« Reply #4 - Posted 2011-05-14 19:17:16 »

Removed..
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #5 - Posted 2011-05-15 03:38:16 »

What does myTimer.getTime() return? I'm assuming it returns the time in seconds since the last call reset? Measuring time in milliseconds or nanoseconds is more recommended.

Anyway, how many images are you drawing? I ran this on my computer:
-0 images, 0-5% CPU
-5 images, 10-5% CPU
-20 images, 20-25% CPU

Offline pitbuller
« Reply #6 - Posted 2011-05-15 08:44:42 »

Jari: DO you have intel graphics card? How much cpu game link at my signature uses?
Offline Jari Särö

Junior Duke


Medals: 1



« Reply #7 - Posted 2011-05-15 09:04:01 »

Removed..
Offline delt0r

JGO Knight


Medals: 27
Exp: 18 years


Computers can do that?


« Reply #8 - Posted 2011-05-15 09:46:59 »

If you have any scaled or rotated images and/or non binary alpha values, even with opengl=true, java2d can fall back to a software renderer. This is very very slow even with just a few images. Even on really fast hardware. The other case where things can get really slow and things hit a software fallback is when the image format is not the same as the graphics device format. Again even if opengl=true.

Finally i don't think opengl=true will work for applets anyway. Or will at least be somewhat unreliable. Oh and as said before, A FX5200 is really old and slow. It is more than 5 years old, like older than dual core and 64bits and all that. 

I have no special talents. I am only passionately curious.--Albert Einstein
Offline pitbuller
« Reply #9 - Posted 2011-05-15 10:33:36 »

Graphics card,

your signature link run 2fps at 100% cpu.

I have GeForce 5200FX, it is allready coming at its final days, here in my linux computer, i do my Java games with Ubuntu and Mint.

Im wondering as i have my gamesite on a build, with AWT and LWJGL, and with LWJGL the same graphics run with CPU less than 10%, for some reason AWT wont fully use accelerated memory on graphics card ?

I have "-Dsun.java2d.opengl=True", so, accelerated memory should be on full use ?

is this for AWT not using textures when drawing bufferedimages, and with LWJGL there is textures on use with OpenGL ?
Problem is somewhere at your computer. 4 year old cheap laptop can run my game lot faster than 2fps so I think there is nothing problem with your code it's just combination of Java graphics and your computer.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jari Särö

Junior Duke


Medals: 1



« Reply #10 - Posted 2011-05-15 11:35:09 »

Removed..
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #11 - Posted 2011-05-15 12:26:29 »

Works fine on my computer: Windows 7 x64 integrated Intel graphics card Smiley

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.

Longarmx (50 views)
2014-10-17 03:59:02

Norakomi (39 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (36 views)
2014-10-15 16:18:58

TehJavaDev (66 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (55 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
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!