Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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  
  Java 3D Quirks  (Read 1606 times)
0 Members and 1 Guest are viewing this topic.
Offline Reynard

Senior Newbie




Java games rock!


« Posted 2003-02-13 18:06:26 »

Hey all! Just started using Java3D for a college project; I'm planning to do a 3D tennis game. I've got the basics in place - a court, with the ball bouncing around in it - but I've come across a problem. Basically, I can run the program several times, and it works perfectly and very fast each time. But then, I'll try it again and it'll start running at something in the region of 1 FPS for no apparent reason. Furthermore, it'll perform in this way every time I run it from then on, until I restart my computer.

I've tried writing it in immediate, retained and mixed modes, and the same thing happens in each. I'm stumped as to why this might be happening; the only thing I can think of is that I haven't performed a proper cleanup when terminating the program, even though I did write code to do so. Does anyone have any idea what might be causing this? As you can imagine, it's kind of annoying to have to restart my computer every twenty minutes just so I can keep testing.

Edited to add: it also seems to have the effect of slightly interfering with Windows - after this happens, dragging windows etc. sometimes leaves artefacts behind in their previous positions.

Thanks, and expect many more pointless questions in the near future!  Wink
Offline zparticle

Senior Member




Thick As A Brick


« Reply #1 - Posted 2003-02-13 18:10:43 »

Just for fun, instead of rebooting your computer, when this happens change the desktop display mode and then change it back to your normal setting. Then try re-running your program.

Offline Reynard

Senior Newbie




Java games rock!


« Reply #2 - Posted 2003-02-13 18:36:02 »

Tried it, but it didn't have any effect. The tennis game still ran at an incredibly slow framerate, and the window artefacts were still popping up  Huh

I should probably mention that the game is currently running in an undecorated 800x600 JFrame, with setIgnoreRepaint enabled.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #3 - Posted 2003-02-13 19:31:25 »

Hrm, I'm no expert on such matters, but in my opinion it sounds like a bug.

If the application is being exited and the JVM closes, there should be no effects propogating over to the next run of the program.

If you're running the OpenGL-based Java3D, try the Direct3D version, and vice-versa.

Hellomynameis Charlie Dobbie.
Offline Breakfast

Senior Member




for great justice!


« Reply #4 - Posted 2003-02-14 09:32:16 »

Are you still getting any trace of your java application in your task manager process list when you have quit the game?
Offline kevglass

JGO Kernel


Medals: 123
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #5 - Posted 2003-02-14 10:25:12 »

Which version of J3D are you running. I remember this happening to me on my old ME box. I think a later version sorted it out (at least for me)

Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #6 - Posted 2003-02-14 10:56:17 »

really looks like a weird windows-driver-opengl/d3d bug that cannot be solved on the java level.

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Reynard

Senior Newbie




Java games rock!


« Reply #7 - Posted 2003-02-14 14:22:58 »

Herkules: that's the only other thing I could think of. I updated my GeForce drivers from the nVidia website, and it seems to have fixed the problem (at least, I've run it about a dozen time now without it happening). I can only assume that's where the problem originated, even though my "old" drivers were pretty goddamn new.

Thanks for the help, guys!
Offline cknoll

Junior Member




Flame On!


« Reply #8 - Posted 2003-02-18 12:24:13 »

Hi,
 The only time I have experienced really slow framerates in J3D is when I tried to set the display window to a size that would exceed the available video memory on my card.  Now, it sounds like between each run, memory of the video card wasn't being released, so eventually you would get to the point where you couldn't allocate any more vid ram buffers, and it would have to resort to slower system ram for drawing?  I'm basing this on the fact that I ran this TRON game that was based in J3D at a very high resolution (1400x1050) and it ran like garbage (1fps) but lowering it down to 800x600 made it run at refresh (60fps).  I've also seen this behavior on 2d based games when I set my screen resoultuion too high.

Is there a way to check to see how much video ram is available, or if a drawing surface is accelerated in J3D?

-Chris
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.

CogWheelz (11 views)
2014-08-01 22:53:16

CogWheelz (13 views)
2014-08-01 22:51:43

CopyableCougar4 (15 views)
2014-08-01 19:37:19

CogWheelz (19 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (35 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36
Resources for WIP games
by CogWheelz
2014-08-01 18:20:17

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

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

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22
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!