RobertMKD's Forum Posts

  • My Engine and Draw calls CPU usage is pretty high, so how do I know what is it I need to work on into improving them?

  • I am using intel xdk as well.

    By the way, I have found a mistake in cjbruce's formula. 'cpuutilisation' has to be 'cpuutilisation*100' since it returns from 0 to 1.

    Therefore, my fps now ranges from 25 to 50 while the CPU is over 50-60.

    I guess it means that I need to work on improving my events..

  • I have made my own movement system, it is better now, but not perfect. Also, my fps sometimes drops bellow 30 (that's the minimum fps) and it causes the player to glitch and move through blocks..

    Also, the blinking on the screen is still there and I have no idea how to stop it :/

  • I am testing on multiple mobiles like samsung and xperia. The problem occurs on each one of them

  • No. My game is something similar to the bomberman game. There are blocks placed in a grid and the player moves between these blocks. The only transparent thing in the layout are the shadows of these blocks, so I have disabled the shadows just to test if they are the source of the problem, but the problem with the movement was still there.

    Yet this problem occurs in other layouts as well, but there's also no transparent sprites..

  • Hi, thanks for the reply.

    I have already done step 1 (my CPU ranges from 12-30%, I've done everything I could to make it better, but that's all I can do, my events simply require this much CPU usage...)

    As for step 2 I have done this as well, but without the CPU, so, now I did just like you told me to and the CPU percentage is 0%, and occasionally becomes 1%, never more than that..

    Also, the fps seems to be even higher on my mobile device, it ranges from over 30 to 60. On my laptop the max is 40, but movement doesn't go into slow-motion as in mobile..

    Weird..

  • Hi,

    So my game used to have a very poor performance while previewing on a mobile device, but I have made some 'radical changes' (like making images way smaller, making events more efficient, followed this https://www.scirra.com/manual/134/performance-tips) and it had a nice result. But it is still not enough.

    The objects using CustomMovement sometimes move in a slow-motion. My min FPS is 30, but the FPS never drops below 30 when moving (the fps drops when the object is triggered to move).

    I have also no effects, no objects that move all the time, no animations that keep replaying (i have a maximum of 15 objects that have looping animations, and these objects are very small), no fading objects.

    Also, there is this problem with the screen which keeps blinking even though i have 'Clear Background' set to 'No'.

    I have over 300-400 objects in each level, and over 900 collision checks per sec.

    I have tried cutting the number of objects on half, but that didn't change anything (90% of my objects are not moving at all), the CustomMovement and some objects I am being scrolling (even though I use 'dt') are still in slow-motion and the screen keeps blinking.

    So, this is my first project and I am not very experienced with making performance more efficient....

    Any advices?

  • It's not about forms. I'm trying to make simple buttons (sprites) with textObjects onto them to scroll inside a window, but I am disappointed that it is not possible here. We have an option to make our own font using spriteFont (I guess it should work fine in this case), but the way it works is nothing better than the textObjects.

    So, since I'm not that experienced with these blending options, I have asked in this forum hoping that that what I am trying to accomplish is possible.. Thank you for trying to help.

  • Yes, I thought of that as well but as you can probably see in my case it is a window which is above the background, so I can't make a tiled background just like in your example...

    It's really a shame that the same blend mode has a different effect for different objects...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I think this image shows very well what I am trying to tell you. So, I need the text to hide together with the buttons..

  • Fading them away gradually won't look good cause the buttons are scrolling just like in celstrider's example, while the text inside the buttons isn't.. :/

  • Thanks

    But it's weird why does 'Destination atop' have a different effect on TextObjects..... Do you have any idea why?

  • So, I have searched for tutorials about this but I haven't found any. I am trying to make a column of buttons placed one on top of another inside a window, but since there are a lot of buttons, I want to make it able to slide this column of buttons up and down without them leaving the window, but gradually disappearing. Just like scrolling inside a text box, the text never leaves the box but is visible only within the box itself.

  • I have rescaled this 2000x1000px image to 1000x500 and this time it had no problems showing this image at the start, but later it started crashing again.

    Could you please tell me the maximum size a mobile can support?

    It will lose the quality if I make it smaller.........

  • The biggest of all is 2000x1000px 1,4MB