let's get to the point

video playback on youtube and other flash video websites is a little slower than it is on XP. Is there any some kind of codecs or something that will improve the performance?
I use firefox and chrome.
On Ubuntu 10.04

My PC is
P4 2.4 GHz
Graphic card: Nvidia FX5200 (128 MB) - updated