Thank you. I am using my mobile phone to answer so it's pretty hard. I will try your tips later. ps: i wanted to say that delphi is slow and it seems to be old. in addition the bindings for sdl, allegro and so on are bad and there are't any free delphi versions.