Before anything, make sure you don't have any stuff open that isn't necessary.
For example: Extra browsers open, programs like photoshop etc.
That alone will prevent extra lag.
Now take these steps.
-First make sure you have webclient or client open
-Then open up your task manager (Ctrl+Alt+Del)
-Click the processes tab
-The look for the Java.exe/Javaw.exe process.
-Right click, go to set priority, then set to high!
That will really help you in preventing lag.
Keep in mind, this may lag other processes on your computer if your still signed in to the client. But while your playing Rapescap3 do this.