Re: penalty for double buffering



Steven Jenkins wrote:

Russell Shaw wrote:

Make a timer with timer=g_timer_new(), then put things like t0=g_timer_elapsed(timer) everywhere in the code, then have: g_printf("Time: %f %f %f\n",t3-t2,t2-t1,t1-t0)
in the 50Hz loop somewhere.


I know the performance hit is in gdk_window_invalidate_rect(), I just don't know why it's as big as it is.

I've looked at your code - put gdk_flush() call after gdk_draw_pixmap() in expose-event handler, times probably will change.

   Olexiy




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]