Hello!
I’m using FPSAnimator, and i can’t play music with javasound.
The CPU usage is 100% with this Animator, so my music thread can’t run at all. ( 1 times in a minute )
I tried to use the same Timer object to the music and FPSAnimator TimerTask object, but nothing changed.
The fps is set to 25, and I’m drawing nothing:
public void display(GLDrawable glDrawable) {
gl = glDrawable.getGL();
glu = glDrawable.getGLU();
gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT );
gl.glMatrixMode(GL.GL_MODELVIEW);
gl.glLoadIdentity();
glu.gluLookAt( eye[terrainInView].x, eye[terrainInView].y, eye[terrainInView].z, focus[terrainInView].x, focus[terrainInView].y, focus[terrainInView].z, up.x, up.y, up.z );
}
What could be the problem?
Thanks…