| Summary: | Timing issues on Linux (OpenGL app) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | William <william> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | minor | ||
| Priority: | P2 | ||
| Version: | 1.2.11 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
|
Description
William
2006-09-01 06:52:27 UTC
The only thing that should change rdtsc is switching processors. Is your system a multi-CPU system? Alternately, is one frame taking a really long time? That sounds like something happening at the driver/kernel level that has nothing specific to do with SDL, unless we ended up choosing a different GL library than GLUT. --ryan. Make sure you do glFinish() (or is it glFlush()?) before swapping buffers. Some drivers get things queued up too long and lock the bus transfering everything down to the video card at the last minute if you don't properly finish your scene. I believe glut actually called that for you, but I could be wrong... I had glFlush() at the end of my frame and changed that to glFinish() which has fixed the problem. Thanks! You're welcome! |