title: Why is the performance of linux opengl application so much worse when run as non root?
body: <p>I'm working an IOT device that displays multiple video streams on the attached display. We are running a very minimal X configuration (system essentially boots to my app, but X is runninng). The application is written in fairly modern opengl (using shaders and such)... I'm also using GLFW. Anyhow, the issue I'm seeing is that the CPU when the app is run as root is around half of what it is when run as non root. I'd strongly prefer to ship this with the main app running as non root, but I'm not sure I can with this kind of performance difference. Has anyone seen this before?</p>
  
  <p>Note: I just noticed that I see "LibGL error: failed to open drm device: Permission denied" printed at startup... So i'm guess the problem is that my non root user cannot use the display hardware acceleration... Any idea how to fix this?</p>