Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 12:53:54 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)#Frames not variable?
Pages: [1]
Print
Author Topic: #Frames not variable?  (Read 1585 times)
mhermann
Enjoying the stay
*
Offline Offline

Posts: 46


View Profile Email
« on: 13. September 2007, 12:19:08 pm »

Is it possible that the #frames is constant set to 60? I didn't find it in the code, but if I set the max FPS to 1000 it doesn't change. Always exactly 60 frames and a nearly idle CPU.
Logged
Mathias 'cylab' Henze
Fierce Warrior
****
Offline Offline

Posts: 540

1064620
View Profile WWW
« Reply #1 on: 13. September 2007, 12:21:33 pm »

This is most probably due to vsync. So your framerate is limited by your monitor refresh rate.
Logged

mhermann
Enjoying the stay
*
Offline Offline

Posts: 46


View Profile Email
« Reply #2 on: 13. September 2007, 02:57:25 pm »

Yes, thanks!
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #3 on: 13. September 2007, 06:25:24 pm »

mhermann, would you have time to wikify that tip following this model : http://xith.org/wiki/index.php/Transparency_and_Materials
Logged
mhermann
Enjoying the stay
*
Offline Offline

Posts: 46


View Profile Email
« Reply #4 on: 04. October 2007, 08:10:26 pm »

Now I have the same problem with the vsync disabled :-) Is it possible that swing limits the framerate?
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #5 on: 04. October 2007, 08:58:15 pm »

Now I have the same problem with the vsync disabled :-) Is it possible that swing limits the framerate?

No Swing doesn't. Do you use a Canvas3DJPanel? If you don't have to, you shouldn't use it. Use Canvas3DPanel instead. If if you don't have a surrounding Swing environment (i.e. a standalone application), you should use Canvas3D with LWJGL or JOGL_AWT.

VSync must in any case be disabled in the driver and the Canvas3D parameters.

Marvin
Logged
mhermann
Enjoying the stay
*
Offline Offline

Posts: 46


View Profile Email
« Reply #6 on: 04. October 2007, 09:36:29 pm »

I use a Canvas3DPanel with the following construction infos

Code:
public static final OpenGLLayer DEFAULT_OGL_LAYER = OpenGLLayer.getDefault();
public static final DisplayMode DEFAULT_DISPLAY_MODE = DisplayModeSelector.getImplementation( DEFAULT_OGL_LAYER ).getBestMode( 1024, 768 );
public static final boolean DEFAULT_FULLSCREEN = DisplayMode.WINDOWED;
public static final boolean DEFAULT_VSYNC = DisplayMode.VSYNC_DISABLED;
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #7 on: 04. October 2007, 09:49:04 pm »

Well, assuming, that these parameters find their way to the Canvas3DPanel's constructor, the only possible reason for 60 FPS limitation is a setting of your driver.

Are any other OpenGL apps limited to 60 FPS?

Marvin
Logged
mhermann
Enjoying the stay
*
Offline Offline

Posts: 46


View Profile Email
« Reply #8 on: 04. October 2007, 10:23:22 pm »

Now I'm really confused  Huh  The renderToTexture-testcase runs at 60fps too. But an older version of my application runs at ~500fps (without the Canvas3DPanel)
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #9 on: 04. October 2007, 10:50:01 pm »

Well, well. Now where you said that, I doublechecked the Canvas3DPanel constructors and vsync settings were ignored Shocked. I fixed that in SVN. Sorry for the confusion.

Marvin
Logged
mhermann
Enjoying the stay
*
Offline Offline

Posts: 46


View Profile Email
« Reply #10 on: 05. October 2007, 08:41:09 am »

Thanks. The world is ok again  Cheesy
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic