The efficiency of mouseTrack and completeRedraw Function

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  08 August 2011
Question The efficiency of mouseTrack and completeRedraw Function

hello.
I use mouseTrack Function to Draw something in viewport . But this Function can't Redraw the viewport.... so i mast add a completeRedraw() at end of the mission.

But when have a lot of objects in the viewport. the completeRedraw every time is so slow.....

So. have other solvent??

Code like this:

fn _Draw msg ir obj faceNum shift ctrl alt =
(
local b
if msg==#mousepoint then
(
b=box()
b.pos=ir.pos
completeRedraw()
)
if msg==#mousemove then
(
b=box()
b.pos=ir.pos
completeRedraw()
)
if msg==#mouseabort then ok else #continue
)

mouseTrack trackCallBack:_Draw
 
  08 August 2011
what about using RedrawViews() instead?
 
  08 August 2011
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:04 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.