Question about 300+ imagebutton on screen at the same time.

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Sirin
Regular
Posts: 39
Joined: Mon Jul 13, 2009 10:16 am
Contact:

Question about 300+ imagebutton on screen at the same time.

#1 Post by Sirin » Sun Mar 10, 2013 12:06 pm

I've a question about imagebutton that was found in my project yesterday.

My project must show a lot of imagebutton at the same time.(at least 300~400 button for tile map screen....that sound crazy but neccessary to me for covered the whole screen.)

And when I move mouse's pointer focus through those button,the hover image in imagebutton show slowly, lack and don't smoothly anyway.(I want the button show hover image after mouse focus on it instantly,but if the button is less than 150 it would executed perfectly.)



I tried many way to solve this as don't use imagebutton at the position unneccessary as much as i can. but after calculated it,I must use at least 350~400 imagebutton.....To think about that scary me very much and make me almost gave up several time.ha~haaa


I wonder does it had any solution to fix and improved this problem for show the hover image in imagebutton instantly if I place imagebutton so much?

I hope someone can explain me about this problem.
Thank you for your help.
- Sirin



---------------------------------------------------------------
Below this is only my opinion.(I don't know what's the source of this problem,but i tried to figure it out in many way.)

- If possible, because I put imagebutton so much?(Like I said before,I must use it at least 300~400 button.)

- Maybe my laptop's performance is very out-of-date(I bought it since 8 year ago.) and only had VGA card onboard,RAM 512 MB,processer Pentium M and ......HDD 40GB. (that sound cruel.....but i believed that if my game run smoothly in my laptop that will run perfectly in the other.)

- Or I code something wrong that take computer's performance.(But i use simple code and don't have any special, Fill screen with grid and put imagebutton inside.)

- Other problem I unexpected?

Endorphin
Veteran
Posts: 366
Joined: Mon Nov 22, 2010 10:52 am
Location: Germany
Contact:

Re: Question about 300+ imagebutton on screen at the same ti

#2 Post by Endorphin » Sun Mar 10, 2013 12:27 pm

Well, you could try out screens - they tend to be faster, in my experience at least.
(And they are more flexible.)

For what exactly do you need that many imagebuttons?
If you tell us why, we might find a faster way.

- En.

Sirin
Regular
Posts: 39
Joined: Mon Jul 13, 2009 10:16 am
Contact:

Re: Question about 300+ imagebutton on screen at the same ti

#3 Post by Sirin » Sun Mar 10, 2013 12:40 pm

Endorphin wrote:Well, you could try out screens - they tend to be faster, in my experience at least.
(And they are more flexible.)

For what exactly do you need that many imagebuttons?
If you tell us why, we might find a faster way.

- En.
em....now I tried to create a tile map engine like "Super Robot Taisen series" and one map consist a lot of button(about 50 columns or rows per map) for choose target or map position to take action or move active character.

But my main problem is flexible of hovering imagebutton is very slow and delay while move mouse's pointer through each button.(I want those button show hover image instantly while mouse's pointer moving over them. And like I said before if imagebutton is less than 150 is shown perfectly but that mean that map is very small.)

Endorphin
Veteran
Posts: 366
Joined: Mon Nov 22, 2010 10:52 am
Location: Germany
Contact:

Re: Question about 300+ imagebutton on screen at the same ti

#4 Post by Endorphin » Sun Mar 10, 2013 2:13 pm

Ah, I see.
I can't really help with this, besides trying it with >this< or reconsidering the engine.

Hope somebody can help you~

Post Reply

Who is online

Users browsing this forum: No registered users