nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   dropped frames (http://www.nvnews.net/vbulletin/showthread.php?t=164721)

Patrice 07-26-11 05:13 AM

dropped frames

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 :


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 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

sandipt 07-27-11 02:35 AM

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 ?

All times are GMT -5. The time now is 04:20 AM.

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