Author Topic: Applet Render Hardware Windows vs Mac  (Read 1599 times)

Offline Pignic

  • byte
  • *
  • Posts: 10
    • View Profile
Applet Render Hardware Windows vs Mac
« on: July 10, 2014, 09:49:03 am »
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
« Last Edit: July 10, 2014, 10:09:43 am by Pignic »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11985
    • View Profile
    • http://www.jpct.net
Re: Applet Render Hardware Windows vs Mac
« Reply #1 on: July 10, 2014, 09:48:22 pm »
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?

Offline Pignic

  • byte
  • *
  • Posts: 10
    • View Profile
Re: Applet Render Hardware Windows vs Mac
« Reply #2 on: July 11, 2014, 11:29:29 am »
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

Offline Pignic

  • byte
  • *
  • Posts: 10
    • View Profile
Re: Applet Render Hardware Windows vs Mac
« Reply #3 on: July 25, 2014, 04:52:58 pm »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11985
    • View Profile
    • http://www.jpct.net
Re: Applet Render Hardware Windows vs Mac
« Reply #4 on: July 25, 2014, 09:10:58 pm »
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

Offline Pignic

  • byte
  • *
  • Posts: 10
    • View Profile
Re: Applet Render Hardware Windows vs Mac
« Reply #5 on: September 12, 2014, 05:42:47 pm »
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.