Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-26-11, 06:13 AM   #1
Patrice
Registered User
 
Join Date: Jul 2011
Posts: 1
Default dropped frames

Hello.

I have a problem with the timing of my frames. I use a vertical sync at 60 FPS, and sometimes the time between two frames is superior at 19 ms.
I have a simple test : i use glxgears application where i added this part of code :

Code:
static double current_time(void)
{
   struct timeval tv;
   struct timezone tz;
   (void) gettimeofday(&tv, &tz);
   return (double) tv.tv_sec + tv.tv_usec/1000000.0;
}

static void event_loop(...)
{
   // ...

   static double t1 = 0;
   static double t2 = 0;

      glXSwapBuffers(dpy, win);
   
   t2 = t1;
   t1 = current_time();

    printf("Elapsed time : %f\n", t2 - t1);

   // ...
}
Glxgears is a very basic application and i don't understand why the time between 2 frames can be superior at 1/60. This is the only application which is running in the server X.

Sometimes, it seems that glXSwapBuffers lagging, and the time for swap buffers is superior than the time of one frame !

My system is an Opensuse 11.1 kernel 2.6.27.7-9-default x86_64 with Nvidia Quadro FX 4600 (version 260.19.29).
Modeline "2048x2400" 327 2048 2096 2128 2208 2400 2403 2413 2469 +hsync -vsync

Thanks for your help
Patrice
Patrice is offline   Reply With Quote
Old 07-27-11, 03:35 AM   #2
sandipt
NVIDIA Corporation
 
sandipt's Avatar
 
Join Date: Dec 2010
Posts: 260
Default Re: dropped frames

Please provide .c file your edited , step by step reproduction steps, what result you got and what should be expected result , nvidia bug report ?
sandipt is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:52 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.