Swing FPS Counter & Wireframe Mode Problem

Hi !

I’m using the Swing FPS Counter .
But when I’m rendering in Wireframe mode with the command: options.setOption(Option.ENABLE_WIREFRAME_MODE, true);
the Swing FPS Counter disappears! ( because I think it’s displayed in “wireframe” too) ???

What can I do to avoid this problem? I want to render my Objects in Wireframe mode, but not the FPS Window!

Thanks for help…

I don’t think this is possible, but you could create as a workaround a Frame, where you simply print it on a Label, that you update every second or so. I guess it’s only for debugging anyways?

@arne
Yes it’s for debugging and Performance Control.
Thanks! I will try to solve it with another Frame…

:wink:
cw

As a quick hack, I’ve been updating the frame title. You can see it in action here by pressing the ‘f’ key to toggle the display:
http://earth.whoola.com:8080/space/browser/

Here is my source code:
http://cvs.sourceforge.net/viewcvs.py/whoola/game/src/com/whoola/game/dock/view/DockDebug.java?rev=1.1&view=auto

the frame title is a good hack, and shouldn’t impact on performance either.

That is what I use (+ some println’s).

Will.

I have a Xith UI frame counter that does not seem to have the “Oh my the UI systems is sooo slow problem” I will post in a day or so.

if you need a fast text printing thingy you could use my work which can be found in the last post in http://192.18.37.44/forums/index.php?topic=10106.0 there actually is no javadoc … but the interface is very straight forward
just create a Text object and add it to your universe

(and please give some feedback :-\ )