On my system, compiled with -O2 and reading 960x960 off-screen image takes:

Original: 1.78622s (yes, nearly 1.8 second!!!)
New:      0.00931s

So the the speed-up factor is 200x.

Filled - including code - as STR #2387

Roman






Albrecht Schlosser wrote:
> On 26.06.2010, at 00:53, Roman Kantor wrote:
> 
>> Anyway, I have written much faster fl_read_image() for windows based on
>> GetDIBits() function (original one is bloody slow as it reads data on
>> per-pixel basis)  so I will submit that as an STR - but it should be
>> revised by somebody more familiar with win32 GDI (works for me
>> thought)...
> 
> Yes, please! This is a long-standing deficiency. Do you have some
> figures about how much faster it is or can be ?
> 
> GetDIBits() looks promising. Looking forward to see this.
> 
> I'd be happy to take a look at it and commit the changes...
> 
> Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to