idea for optimize my game, is effective?

Discuss game development design and post your game ideas

Post » Fri Apr 25, 2014 1:24 pm

oh Hello, is my first post here :D. I'm Brazilian and stay calm with my english :roll:

my project uses stages with a big layout 20000x550px, and many sprites so. For a method to try optimize my game and makes it faster I input a referencial in my character thats who leaving the sprites hidden in a particular field of distance. My doubt is whether there is really any difference in performance of an object is hidden or not.

thanks!
B
3
Posts: 5
Reputation: 185

Post » Fri Apr 25, 2014 2:37 pm

You posted in the wrong section. This post should be in the "How Do I".

I just wanna say before you delve much deeper. Research. A lot of new devs dive right in withough knowing enough technical knowledge and then have a hard time understanding why there is a problem.

1. GPU's only can handle image sizes of 2048x2048.. if you have an image size larger. You will suffer both memory and speed problems..... I see you have a 20000 width image there. You will want to slice that into 2048x550 and then placing them next to each other

2. An invisible sprite does no render and is no problem on the GPU. However if it's still moving then it still uses CPU.

3. A Opacity 0 object is still rendered and use the GPU.

4. batch your sprites into types and layers.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Fri Apr 25, 2014 2:48 pm

wrong section? ouch!
my layout is 20000x550px, but without have images with that size! but thank you for answering my question, I will think in others ways to solve that
B
3
Posts: 5
Reputation: 185

Post » Fri Apr 25, 2014 3:17 pm

oops :D. I misread.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 3 guests