UI loading....lag in max

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
Old 07 July 2011   #1
UI loading....lag in max

I have a dialog that uses a round 2 dozen icons all 24x24px or smaller.
They are for the image buttons and they seem to really lag up max when I create the dialog.

I was wondering if anyone knew the most efficient way to go about creating this rollout.

Should I use dot net image buttons instead? Along with 64bit image processing?


Thanks
JokerMartini
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
Old 07 July 2011   #2
Originally Posted by JokerMartini: I have a dialog that uses a round 2 dozen icons all 24x24px or smaller.
They are for the image buttons and they seem to really lag up max when I create the dialog.


how long the lag is?
 
Old 07 July 2011   #3
Originally Posted by JokerMartini: Along with 64bit image processing?


what does that mean?
 
Old 07 July 2011   #4
tomorrow

I'll post the script tomorrow and then you can heck it out.
I'll post in the early morning.
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
Old 07 July 2011   #5
Originally Posted by lo: what does that mean?

for me the lag means a time interval between the moment of the calling and the fact of the actual showing of a tool's dialog.
i was asking how long it takes in your case... capiche?

Last edited by denisT : 07 July 2011 at 10:06 AM.
 
Old 07 July 2011   #6
Please read the thread more carefully Denis
 
Old 07 July 2011   #7
Lo

Quick reply.....64bit

http://www.scriptspot.com/3ds-max/s...t-image-encoder
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
Old 07 July 2011   #8
Originally Posted by JokerMartini: Quick reply.....64bit

http://www.scriptspot.com/3ds-max/s...t-image-encoder


That is not the purpose of Pete's tool. It is to convert images to text and vice versa... if anything, it will make your loading much slower.

Please post your code.
 
Old 07 July 2011   #9
Originally Posted by lo: That is not the purpose of Pete's tool. It is to convert images to text and vice versa... if anything, it will make your loading much slower.

Please post your code.


be patient or read the thread more carefully ("I'll post the script tomorrow and then you can heck it out. I'll post in the early morning.")
 
Old 07 July 2011   #10
Originally Posted by denisT: be patient or read the thread more carefully ("I'll post the script tomorrow and then you can heck it out. I'll post in the early morning.")


Yeah, but that was yesterday
 
Old 07 July 2011   #11
Here it is

It takes around 1.112 seconds and varies between that and 2.1 seconds.
I've attached the image and the script.

You will have to redirect the image path.

Let me know your thoughts please.
Thanks
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
Old 07 July 2011   #12
instead of
local imgCurveTypes = @"C:\blablabla\curveTypes2.bmp"

use
local imgCurveType = openBitmap @"C:\blablabla\curveTypes2.bmp"

what's happening is that each button is opening the bitmap again and again because you are supplying it with a filename, not a bitmap value.

Though to be honest, even before that change it only took 120ms for me from a local path and 500ms from a network path.
You may have either a very slow network or a very slow machine.
 
Old 07 July 2011   #13
Lo
Thank you very much.
I was unaware that it was loading that image for each button. I thought that max was quicker than that.
Thank you very much for your help.

John
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
Old 07 July 2011   #14
The Base64 utility shouldn't strictly be used each time a script is run. I commonly use it in a startup struct that either -

1. checks for some script assets (e.g. when a script is first run) and creates the image assets for the script,
2.holds the images in a global struct that other scripts can call rather than loading similar icons each time a script is run.

It's just a dotnet equivalent to the setpixel method in the mxs help to allow distribution of code without dependencies.

looking at your code, I haven't run it but is the Q path a network path? that may not help your load performance if you are calling the same method via the network for 33 buttons. Just a thought though.
__________________
Regards,
Pete

Read my technical blog - lonerobot.net
 
Old 07 July 2011   #15
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:45 AM.


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