Message-ID: <402D1FA6.2000203 at baretta.com> Date: Fri, 13 Feb 2004 20:04:06 +0100 From: Alex Baretta MIME-Version: 1.0 To: lablgtk at kaba.or.jp Subject: Scrolling an image efficiently Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I need to scroll a fullscreen image efficiently, at constant speed (a full screen's width every 3-10 seconds), with a constant framerate, and in sync the actual screen refresh. Even if this seems a banal task, the stringent requirement of refreshing the screens buffer synchronously makes it far from trivial. Theoretically all I need to do is create a number of pixmaps containing each a slice of the image I need to scroll and redraw all the slices afther shifting them by one between screen refreshes. However, I have to redraw a 1280x1024 32bit screen at close to 100Hz (worst case scenario). I fear the object oriented style of lablgtk might make this library too slow to achieve such performace (at least without hogging the cpu). Any ideas? Alex