[AD] mode selector, some observations...

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


i've come to the conclusion that it is NOT worth rewriting the
fetch_mode_list() functions to return a list of type MODE_LIST (see
modesel.c) to avoid list conversion. this because the speed gain is minimal!
my timings indicate that the time the mode selector dialog takes to
initialize is largely due to the fetch_mode_list() calls.

platform/build:    create_driver_list() total:    single fetch_mode_list()
call:
win32/mingw     243ms                                80-89ms
dos/djgpp          30ms                                   5-20ms

test machine: Athlon Thunderbird 1GHz 266FSB, Win98SE, 256mb 7-7,5ns SDRAM,
ASUS Geforce2MX 32mb SDRAM. timings were varying a bit... but the above
numbers are averages.

according to my numbers what can be done to speed things up, seems to be
optimizing the directx mode enumeration. perhaps the callback is a little
slow?

Sincerely Henrik Stokseth.
-------------------------------------------------------------------------
E-mail: hstokset@xxxxxxxxxx  Homepage: http://hstokset.n3.net



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/