ekianjo
Hardcore Member
I am working on a picture (photo) viewer application right now, in pyGtK/Cairo, and I am reaching a bottleneck. I am displaying 16 thumbnails in png on screen (100px * 133 px usually but sizes differ a litle) but I seem to be stuck at 15-18 fps when refreshing the screen. On my desktop the code runs much faster of course, at 90 fps at least.
I am coming on this forum after checking what I could find on the net (including stackoverflow) but after some initial boost (I started at 3 fps, and moved to 15-18 fps by preloading the surfaces and simply copying them at the drawing time - major boost) I am now finding it harder to optimize further.
A few questions:
1. would loading jpg in pixbuffer instead of png be faster to display in the end ? (i am preloading the images anyway, so not sure if it does make a difference when rendering on screen)
2. Is there any reduction in quality that I can use in cairo's settings to speed up rendering ?
3. Any other ideas?
I am coming on this forum after checking what I could find on the net (including stackoverflow) but after some initial boost (I started at 3 fps, and moved to 15-18 fps by preloading the surfaces and simply copying them at the drawing time - major boost) I am now finding it harder to optimize further.
A few questions:
1. would loading jpg in pixbuffer instead of png be faster to display in the end ? (i am preloading the images anyway, so not sure if it does make a difference when rendering on screen)
2. Is there any reduction in quality that I can use in cairo's settings to speed up rendering ?
3. Any other ideas?