I have some real performance problems with drawing shapes on surfaces.
I have a full hd room, in which i have a huge surface, on which i would like to draw some shapes.
Example: my line has a start position at 200,200 and the end position is always following the mouse.
This is what I do in the always event: clear surface; draw line from 200,200 to xmouse,ymouse
But this thing eats 25% of cpu on my good gamer pc, so what can I do to avoid such a huge performance hole.
Is it possible to draw lines without surfaces?
2nd question: how to make this line inverted? So it would be black on white backgrounds and vice versa..