User Tag List

Results 1 to 3 of 3

Thread: Performance problems with surfaces

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2012
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Performance problems with surfaces

    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.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Posts
    311
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 line surface object, but the CPU usage is the same.

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2012
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, that solution is good.

    But what about the color invertation of a line?

Similar Threads

  1. How do I get the character to slide down surfaces, not stick to them?
    By emberjed in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 2nd December 2012, 04:18 PM
  2. Need help with surfaces
    By Retriever2 in forum Extension Development
    Replies: 2
    Last Post: 10th November 2009, 02:04 AM
  3. Capture 3D surfaces with a flash camera
    By Tuna in forum Hardware Accelerated Runtime
    Replies: 1
    Last Post: 27th August 2008, 11:33 PM
  4. Surfaces
    By Ben in forum Extension Development
    Replies: 4
    Last Post: 24th August 2007, 11:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •