World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 06-24-2007, 10:22 PM   #1
fabrizio.giudici
Senior Member
 
Join Date: May 2007
Location: Milan, Genoa (Italy)
Posts: 112
fabrizio.giudici is on a distinguished road
Default Serious bug with Mac OS X Flickering - found the cause

A few weeks ago I found that in certain cases putting UserFacingIcons on the Earth model caused severe flickering with Mac OS X.

After some investigation, I can confirm that the problem happens only with Mac OS X, and in particular only with icons larger than 16x16 (this is why the original code by Pat Murris worked).

If the icons are just a bit larger (e.g. 17x17), in the method:

Code:
private Point drawIcon(DrawContext dc, OrderedIcon uIcon)
the call to

Code:
dc.drawUnitQuad(texCoords);
instead of taking 0ms (as usual), lasts up to 200-250ms. This clearly produces the flickering.

For my demo of Tuesday I've applied a quick-and-tragic workaround, that is I've reduced my photo icons to 16x16. But it's really small :-( even though it wouldn't severely impact my demo. Any quick hint?
__________________
--
Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
Fabrizio.Giudici@tidalwave.it - mobile: +39 348.150.6941

Last edited by fabrizio.giudici; 06-24-2007 at 10:53 PM.
fabrizio.giudici is offline   Reply With Quote
Old 06-25-2007, 04:33 AM   #2
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

Could it be related to non power of two texture sizes ?
Does it flicker with say 64x64 ?
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 06-25-2007, 07:23 AM   #3
fabrizio.giudici
Senior Member
 
Join Date: May 2007
Location: Milan, Genoa (Italy)
Posts: 112
fabrizio.giudici is on a distinguished road
Default

YES!! :-) 128x128 works and now I can make a workaround that won't have any visual impact. :-)))

I definitely have to pay you a beer! I'm not sure yet if you live in Canada or Côte d'Azur - in the latter case I could pay my debit somewhat quickly...
__________________
--
Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
Fabrizio.Giudici@tidalwave.it - mobile: +39 348.150.6941
fabrizio.giudici is offline   Reply With Quote
Old 06-25-2007, 07:32 AM   #4
fabrizio.giudici
Senior Member
 
Join Date: May 2007
Location: Milan, Genoa (Italy)
Posts: 112
fabrizio.giudici is on a distinguished road
Default

Ok, my fix works. This makes me happy for a while.

Now, do you believe it's a WWJ bug or a JOGL bug? I'd like to file a bug, so I will be able to remove my fix in future.
__________________
--
Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
Fabrizio.Giudici@tidalwave.it - mobile: +39 348.150.6941
fabrizio.giudici is offline   Reply With Quote
Old 06-25-2007, 11:21 AM   #5
pred
Member
 
Join Date: May 2007
Posts: 57
pred is on a distinguished road
Default

Patmurris is the man ! I will try to add 'photos point' like gEarth with your advices.
pred is offline   Reply With Quote
Old 06-25-2007, 08:18 PM   #6
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

Quote:
Originally Posted by fabrizio.giudici View Post
I definitely have to pay you a beer! I'm not sure yet if you live in Canada or Côte d'Azur - in the latter case I could pay my debit somewhat quickly...
I live in Montreal, Canada, but i will be visiting family in Nice most of july and august... so i wont be very far. BTW : a grappa would be more appropriate

Quote:
Originally Posted by fabrizio.giudici View Post
Now, do you believe it's a WWJ bug or a JOGL bug? I'd like to file a bug, so I will be able to remove my fix in future.
I'm not sure what the status is regarding JOGL and non power of two (NPOT) textures. It has been a long time issue that should be resolved by now... but obviously is not.

Having all your textures with POTs dimensions is certainly the safest way.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 06-25-2007, 08:22 PM   #7
fabrizio.giudici
Senior Member
 
Join Date: May 2007
Location: Milan, Genoa (Italy)
Posts: 112
fabrizio.giudici is on a distinguished road
Default

Quote:
Originally Posted by patmurris View Post
I live in Montreal, Canada, but i will be visiting family in Nice most of july and august... so i wont be very far. BTW : a grappa would be more appropriate
Drop me a line when you're going to go to Nice...
__________________
--
Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
Fabrizio.Giudici@tidalwave.it - mobile: +39 348.150.6941
fabrizio.giudici is offline   Reply With Quote
Old 07-02-2007, 03:44 PM   #8
maemigh
Junior Member
 
Join Date: Jul 2007
Posts: 19
maemigh is on a distinguished road
Default

I just started seeing this problem as I'm doing tests on MacBooks and MacBook Pros. It seems that the flickering problem occurs on the Pro but not on the normal MacBook.
maemigh is offline   Reply With Quote
Old 06-20-2010, 03:48 PM   #9
Unregistered
Guest
 
Posts: n/a
Default

no, it occurs on the macbook also.
I've had a flickering problem while using java based games.
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reg compiling the source code Raj Developers' Corner 10 08-26-2008 06:58 PM


All times are GMT +1. The time now is 03:36 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.