I get a processor usage up to 70% when I draw some forms on the mouse position.
Is there generally a problem with that or am I doing something wrong?
Maybe too much color changes or calculations in the draw commands?
Code: Select all
love.graphics.setColor(0, 200, 0, 100)
love.graphics.circle("fill", love.mouse.getX(), love.mouse.getY(), test1)
love.graphics.setColor(test3, test4, 0, 100)
love.graphics.rectangle("fill", love.mouse.getX()-40, love.mouse.getY()-40, test5, test6)
love.graphics.setColor(test3, test4, 0)
love.graphics.rectangle("line", love.mouse.getX()-40, love.mouse.getY()-40, test5, test6)
love.graphics.setColor(0, 255, 0)
love.graphics.circle("line", love.mouse.getX(), love.mouse.getY(), test2)