I have a Razer Naga gaming mouse which, unfortunately, doesn’t work well out of the box with Linux / Ubuntu. Here’s how you can remedy the problem somewhat.
Install Razer device configuration tool. The instructions are on the project page, the install is not overly difficult. This gives you the power to tinker with various mouse settings, most importantly the scan resolution (mouse cursor movement speed).
I also ran into a problem where the scan resolution would reset itself to 1000 each time I disconnected the mouse (including putting the system to sleep). The default udev rule installed by razercfg did not work, so I modified it to use a custom script. If you’re new to udev, read How To Write udev Rules.