NEWT window takes ~10 sec to become visible on multiple monitor setups
Posted by
asambol on
Nov 20, 2014; 12:50pm
URL: https://forum.jogamp.org/NEWT-window-takes-10-sec-to-become-visible-on-multiple-monitor-setups-tp4033582.html
Sample code:
http://pastebin.com/gfEcK9wjSo, I have a simple GLEventListener rendering absolutely nothing, just instantiating a NEWT window. It takes way too long to show the NEWT window on a 6 monitor setup.
1 monitor ~1sec
2 monitors ~2sec
3 monitors ~5sec
4+ monitors ~10sec
It's a brand new Windows 7 machine with 2x NVidia GTX 780 graphics cards (tried with and without SLI). I tried using only 1 card, same thing occurs. Once the windows show up, I have no problem running 6 full HD windows with real rendering at max frame rate, so there is enough juice. The problem is it takes ~60 seconds for the windows to appear (6 * ~10sec).
I have tracked the problem to this line of code: glWindow.setVisible(true);
The whole computer becomes completely unresponsive until that line gets executed (I can barely move the mouse). It happens on a laptop with 4 displays connected as well.
I tried with glWindow.setVisible(false, true); - now the call is non blocking but the window appears after ~10sec and during that time the computer is unresponsive as well.
Looking at underlying NEWT implementation, I guess it has something with EDT availability.
Is there something I am overlooking or doing wrong?