Testing And Debugging
How do I do benchmarking with Unreal Tournament?
Start a practice level. Type
timedemo 1 in the console or in alternative select the Tools > TimeDemo Statistic menu entry.
You should see two numbers in white text on the right side of the screen showing the average framerate (Avg) and the number of frame rates in the last second (Last Sec). If this doesn't work check whether the stats get reported in your
Is there any way for us to detect which features are implemented with hardware support for a given driver?
OpenGL doesn't have such a query. This is a potential problem with any OpenGL implementation. The real question one wants answered is "is this feature or GL state combination fast enough for my needs?". Whether a feature is implemented in hardware or software isn't always consistent with that question.
You might consider implementing a benchmark function to test the speed during start-up and making a decision depending on the result. The info could be cached in a file keyed by
Which OpenGL benchmarking program can I use to test and compare various facets of the performance of graphics cards?
- Games. You can use OpenGL games such as Quake 3, Unreal Tournament, etc.
- SPECviewperf is a portable OpenGL performance benchmark program written in C providing a vast amount of flexibility in benchmarking OpenGL performance.
- SPECglperf is an executable toolkit that measures the performance of OpenGL 2D and 3D graphics operations. These operations are low-level primitives (points, lines, triangles, pixels, etc.) rather than entire models.
- piglit is a suite of tools for evaluating the quality of an OpenGL implementation and diagnosing any problems that are discovered. It also has the ability to compare two OpenGL implementations and highlight the differences between them.
- machtest is a thorough benchmark for graphics cards. It has literally thousands of command line options, is easily extensible and it can produce machine readable output.
- Mesa demos.
- Nate Robins' OpenGL Tutors are a set of tutorial programs that demonstrate basic OpenGL functionality by allowing the user to modify the parameters of a function and see the effect on the scene.
- Frustum has some demos to some >= 1.2 GL extensions, including shaders
- Humus also has some demos to GL extensions, including shaders and ATI specific extensions
- GPU Shader Demo Programs using nVidia (NV) and/or ARB shader extensions, featured at opengl.org.
What environment variables affect libGL behavior?
|| If defined debug information will be printed to stderr. If set to
||Path were to search for 3D DRI drivers.|
||Assures that no direct rendering will take place. See also here.|
||If set it will force software rendering.|
- (!) Due to their specificity and volatility is not worth to have all driver specific environment variables here. An interesting way to list them is to do:
_dri.so | grep DEBUG
How should I report bugs?
Please submit bugs to BugZilla. It's best if you can create a small example that shows what you think is the problem.
For those who really want to be Open Source heroes -- you can create a test for the bug under piglit. The intention would be to run piglit quite often, so any functionality you can verify there, is much less likely to reappear in a broken form at some random time in the future.
How to get a backtrace on the core dump?
- If core dumps aren't turned on in your shell, turn them on. For tcsh it's a command like
limit coredumpsize 200000For bash it is
ulimit -c unlimited. See the man page. Start the server
startxfrom the same shell.
- When the server crashes and you get a core file, run gdb on it. The core file might be in
/etc/X11if it's not in the current directory.
gdb -c core /usr/X11R6/bin/XFree86
- From the gdb prompt type
btto get a backtrace. Hopefully you have symbols and it will give us an idea where it actually segfaulted. -- http://dri.sourceforge.net/cgi-bin/moin.cgi/RecentChanges
How to dump video bios ?
Find the pci device associated to your gpu with lspci. If lspci report:
01:05.0 VGA compatible controller: ATI Technologies Inc RS880 [Radeon HD 4200]
cd /sys/bus/pci/devices/0000:01:05.0 sudo sh -c "echo 1 > rom" sudo sh -c "cat rom > ~/bios.rom"