OpenGL Timer Queries
With desktop OpenGL, we can use timer queries (glQueryCounter(handle, GL_TIMESTAMP)) but that's not supported with OpenGL ES. Is there any way to measure the time of a draw call on the Pi 4? I see that the "GL_AMD_performance_monitor" OpenGL extension is supported. Has anyone used that with the Pi 4? I have not found any examples of people using it.
Thanks,
-Farrell
Thanks,
-Farrell
Re: OpenGL Timer Queries
Looks like Igalia recently added support for OpenGL timer queries! They were added to Mesa 25, so hopefully that will show up in the repos soon.
They mentioned this in their FOSDEM talk a couple week ago:
https://www.youtube.com/watch?v=rX1J6QexjaM
Towards the end of that talk they talk about timer queries and profiling. Lots of good info.
They mentioned this in their FOSDEM talk a couple week ago:
https://www.youtube.com/watch?v=rX1J6QexjaM
Towards the end of that talk they talk about timer queries and profiling. Lots of good info.
- cillian64
- Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator - Posts: 115
- Joined: Tue Sep 26, 2023 8:49 am
Re: OpenGL Timer Queries
Very cool! It's unlikely we'll get Mesa 25 into bookworm but we should have Mesa 25 in trixie on release.
Return to "Graphics programming"
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion