Re: Bindless vertex array
Posted by
elect on
Jun 29, 2015; 7:57pm
URL: https://forum.jogamp.org/Bindless-vertex-array-tp4034343p4034780.html
gouessej wrote
Please use pure NEWT, no AWT, no bridge + call setExclusiveContextThread.
gouessej wrote
Please use pure NEWT, no AWT, no bridge + call setExclusiveContextThread.
Ok, I got rid of jFrame and set exclusiveContext in this way
GLProfile gLProfile = GLProfile.getDefault();
GLCapabilities gLCapabilities = new GLCapabilities(gLProfile);
glWindow = GLWindow.create(gLCapabilities);
newtCanvasAWT = new NewtCanvasAWT(glWindow);
glWindow.setSize(1280, 720);
glWindow.addGLEventListener(this);
animator = new Animator(glWindow);
animator.setModeBits(false, AnimatorBase.DEFAULT_FRAMES_PER_INTERVAL);
animator.setExclusiveContext(true);
animator.start();
glWindow.setVisible(true);
Situation improved slightly (200+ fps)