I don't know, just installed lazarus and get impressed with the
ddoouubbllee input bug!!
under lubuntu, so I left it for now.
But I thing it will run fast now...
Something weird about slowness was this, (is other case):
I was using a listbox with ownerdraw that draw some bgrabitmap icons stored in memory in the list. (Each item in the list has their own icon) so it takes time.
I have a combobox with acts as a filter of the listbox, depending the item you choose the list is updated. And the weird is this:
Using default drawing it works fine. Using owner draw the things are messed, the combobox show, for example 'Animals' and I see 'Colors' in the listbox! Because the time of drawing each icon in the list. Is not as faster as the speed I change the combobox items (for example scrolling the items with the mouse..).
Yes, is not so simple to see without the program. Well the application crashes because the icons are referenced to each item in the list:
Add('Animal text', object);
object.Bitmap >> this is the bitmap
This is very powerfull because I can get exactly the correct bitmap for exactly the item index.
But, if the listbox is updated faster than the drawing, when the drawing is coming the indexes are messed (the list that is being drawed is not the same as the current list that is in memory..) so It can't access the correct bitmap and when the ammount of bitmaps and items is different of course it crashes. Imagine intent to acces index 4 when there are only 2 items in the list.
So nice. I don't know if processmessages has something to do or is another unrelated thing.