Performance problems with surfaces

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello!

    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..

    Thank you.
    2xD.

    Edited once, last by 2xD (February 18, 2013 at 3:38 PM).

  • Some performance suggestion,
    change the always condition to something like this:

    -repeat while mouse key is pressed
    -value oldxmouse <> xmouse
    or
    -repeat while mouse key is pressed
    -value oldymouse <> ymouse

    Then change the action to:
    -clear surface
    -draw line from 200,200 to xmouse,ymouse
    -set value oldxmouse to xmouse
    -set value oldymouse to ymouse

    This stops the line drawing when the mouse cursor is not moved.


    Yout can try the Please login to see this link., but the CPU usage is the same.

    Edited once, last by Quinto (February 18, 2013 at 6:28 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!