Applet Render Hardware Windows vs Mac

Started by Pignic, July 10, 2014, 09:49:03 AM

Previous topic - Next topic

Pignic

Hi,

I’ve created an Applet using JPCT. This work well on Windows but I have some troubles with Mac.
When I'm using Windows, I’ve got this:



And on Mac, I’ve got this:



But on the initialization of the applet, I've got a white screen (normal) and then this :



Before that the canvas appear and the menu goes black...

I have this since the beginning of the project (2 years) and I don’t have any clues on how to solve it.

I see briefly the swing part but it disappears when the canvas appear. I can continue to use the buttons in the menu and the cursor change well when i go in/out the canvas.

What can I post to you to help me with this ?

Best regards,
Nicolas

EgonOlsen

That has actually nothing to do with the engine. It's most likely a problem of the implementation on the Mac, which i don't own. That doesn't mean that i'm not willing to help here, it just means that i haven't many ideas on how to solve this. On Windows, one can tweak the Java2d pipeline by some system parameters to either use D3D, OpenGL or software. Maybe something similar is possible on the Mac? Does this actually apply to applets only or has an application the same issue?

Pignic

Hi,
First of all, thank you for your quick reactivity.
I've don't run the app in a standalone version but if I try to run it with the appletViewer of Eclipse, it works well. I have made a comparison of the classPath and others parameter with visualVM to reproduce the same environment but nothing to do... I don't know very well the Mac's world and I've tried for a year to solve this problem. I solve just one thing : I deactivate the shadow helper because it cause a black canvas on mac (I've passed 3 month to find this, maybe is was a bad use or anything but I don't want to use more time for this (my boss doesn't want to pay me for this :)...))
If you want, you can chek the app on http://www.easygreen.pro/pages/designer

Thanks for your help !
Nicolas

Pignic

Hi,

I don't really understand what you mean by : "On Windows, one can tweak the Java2d pipeline by some system parameters to either use D3D, OpenGL or software".
Is it a parameter to add in the applet tag ?

Thanks

EgonOlsen

Yes, at least on Windows, some system properties exist to configure the pipeline. You can find some info about this here: http://docs.oracle.com/javase/6/docs/technotes/guides/2d/flags.html

Pignic

Hi,

I have updated the Mac to the Maverick version and everithing works well now (just some issues on some font but easy to solve)

Thank you.