Replace knock sensors will most likely clean the problem up.
With them playing up the computer will think there is pinging and will put the car into 'limp' mode, will drive like pooze.
Toyota wanted something like $398.00 +gst ea when i had to replace mine, paid $6 ea second hand, i suggest you go second hand