Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: CWP getting VERY slow on multiply window

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    7

    CWP getting VERY slow on multiply window

    I took a small OpenGL & CPW program and converted it to 3 widows - one context version.
    BUT, running the new multi-window program was VERY slow compared with the single window program.

    Ant ideas??? Help is REALY needed here...

  2. #2
    Junior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    133

    Re: CWP getting VERY slow on multiply window

    Originally posted by oshapir:
    Ant ideas??? Help is REALY needed here...
    Hey,

    I've run multiwindow apps before without
    any major slow down. Perhaps you could post
    some code?

    A solution might be to use the built in
    timing routines to track the amount of time
    your code spends in each window update
    section to track down the slow code.

    You can also use cpwMainLoopUpdate instead of
    cpwMainLoop, and time it's usage to see if
    the time used in occuring in event updates
    or someplace else.

    Regards,
    Jim
    --
    Jim Mathies http://www.mathies.com/

    \"The best way to predict the future is to invent it."

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    7

    Re: CWP getting VERY slow on multiply window

    How can I include the program in the reply?Thanks,
    Oren Shapir.

    [This message has been edited by oshapir (edited 11-19-2002).]

  4. #4
    Junior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    133

    Re: CWP getting VERY slow on multiply window

    Originally posted by oshapir:
    How can I include the program in the reply?Thanks,
    Oren Shapir.
    Just mail it directly to me and I'll compile it to take a look.. jim 'at' mathies 'dot' com. If not, mail me some code snippets or something, I'll try and help you at as best I can.

    Regards,
    Jim
    --
    Jim Mathies http://www.mathies.com/

    \"The best way to predict the future is to invent it."

  5. #5
    Junior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    133

    Re: CWP getting VERY slow on multiply window

    Note, we solved this - he was using three windows and calling cpwPostRedisplay() on mouse events for one of them. This effectivly sent a redraw event to every one of his windows on every mouse move event.

    When working with multi-windows apps in Cpw, you should always call cpwPostWindowRedisplay() to send a redraw event directly to the window that needs it.

    Jim
    --
    Jim Mathies http://www.mathies.com/

    \"The best way to predict the future is to invent it."

Posting Permissions

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