Hello Guest

GL_TIMESTAMP

  • 3 Replies
  • 4102 Views
*

Offline Obsyd

  • **
  • 71
GL_TIMESTAMP
« on: June 13, 2014, 09:13:05 »
Hello there!

I'm trying to profile my gpu and I'm running into problems.
The GL32.glGetInteger64(GL33.GL_TIMESTAMP) call always returns 0 for me.

I'm on OSX Mavericks with an AMD card.

What am I doing wrong? Thanks for the answers!

*

Offline basil

  • **
  • 81
Re: GL_TIMESTAMP
« Reply #1 on: June 30, 2014, 19:23:27 »
not sure about long, but double

Code: [Select]
GL11.glGetDouble(GL33.GL_TIMESTAMP);
works for me :)

*

Offline Obsyd

  • **
  • 71
Re: GL_TIMESTAMP
« Reply #2 on: July 02, 2014, 12:24:13 »
GL11.glGetDouble(GL33.GL_TIMESTAMP);
sadly gives 0.0 :(

*

Offline basil

  • **
  • 81
Re: GL_TIMESTAMP
« Reply #3 on: July 02, 2014, 13:49:24 »
maybe your system does not support ARB_timer_query.

https://www.opengl.org/registry/specs/ARB/timer_query.txt

i think that's required.