slow down

  • 8 Replies
  • 7569 Views
*

Offline smeagle

  • 352
  • 3
  • Using Arch now
    • View Profile
slow down
« on: April 19, 2010, 11:12:58 »
I have finally gotten around to taking pictures of rocks and assorted to put on the Itress level.

I now have a problem. On one particularly complex screen, the game has a longer than normal loading time for that screen.

It has over 35 "objects" on 4 diferent layers. When moving from one screen to the next, it ussually happens in about half a second. When moving on to this screen, it can take as long as 2 seconds. This is diconcerting for the player, and most screens are going to have this level of detail. Is there any way to speed up this?
Would making the original source images smaller help?

*

Offline Pumpkinbot

  • 1134
  • 20
  • No terrain is too hard. Not even dragons.
    • View Profile
    • My DeviantART page
Re: slow down
« Reply #1 on: April 24, 2010, 00:10:33 »
I have finally gotten around to taking pictures of rocks and assorted to put on the Itress level.

I now have a problem. On one particularly complex screen, the game has a longer than normal loading time for that screen.

It has over 35 "objects" on 4 diferent layers. When moving from one screen to the next, it ussually happens in about half a second. When moving on to this screen, it can take as long as 2 seconds. This is diconcerting for the player, and most screens are going to have this level of detail. Is there any way to speed up this?
Would making the original source images smaller help?
I don't edit (or play) Saira, but could you combine some of the objects into one big object? Like having a screen-sized CO on KS.
A God, a Messiah, an Angel, a King, a Prince, and an All Terrain Vehicle.

*

Offline Firecat

  • 370
  • 52
  • Every bit is important.
    • View Profile
Re: slow down
« Reply #2 on: April 24, 2010, 01:25:10 »
I don't edit (or play) Saira, but could you combine some of the objects into one big object? Like having a screen-sized CO on KS.
Objects in Saira are faaaaaaaaaaaaaaaaar more complex (ie: the images themsleves doesnt move. but they have lots and lots of code)so i think no.
There's 110011 kinds of people in the world. Those who understand binary, Those who don't, and those who confuse it with ASCII.

Re: slow down
« Reply #3 on: April 24, 2010, 18:15:33 »
How big are the original source images? Certainly try to make them as small as possible (not size wise, but filesize wise). Each of the 35 objects aren't using a different picture are they?

You could put multiple rocks in one picture and then rotate it in the level editor so only one rock is visible, but that probably won't reduce the filesize very much.

You may end up having to only use two or three different rocks and repeating them in that screen. Or you could stick a few of them in your tileset. Then they'd be loaded when you get to the planet instead of on that screen.

*

Offline Nifflas

  • 1532
  • 61
    • View Profile
Re: slow down
« Reply #4 on: April 25, 2010, 00:55:25 »
The problem is that the active picture object I used in Saira to display scenery objects (not sprites though) can not cache images and need to load them on the fly when you enter a screen. It's by this reason the backgrounds in Saira are actually blurry and lo-res as well as the blurred images that's resized to be larger. It's basically a set of images that's not very large, which is what results in an acceptable load time.

The animated picture object is not hardware-acceleration optimized as the active picture is, so despite that it can pre-cache images, I can not use it for anything other than smaller sprites that doesn't rotate. In other words, that isn't an option for the scenery. Of course I wish things could work slightly differently, but I'm doing my best with MMF2's limitations :)

*

Offline smeagle

  • 352
  • 3
  • Using Arch now
    • View Profile
Re: slow down
« Reply #5 on: April 26, 2010, 10:50:55 »
ill try resizing the images next time i can get on the computer.
I think there like 1000X somerthing, so thats probs the problem

*

Offline smeagle

  • 352
  • 3
  • Using Arch now
    • View Profile
Re: slow down
« Reply #6 on: May 23, 2010, 10:46:53 »
Sorry for the double post, but my computer's hard drive brokes  :ohnoes:
Ill be able to test this in about 5 days or so.....  :/

*

Offline smeagle

  • 352
  • 3
  • Using Arch now
    • View Profile
Re: slow down
« Reply #7 on: May 25, 2010, 08:41:06 »
wait, did I say hard drive?  :sick:

It was motherboard
(luckily  C))

any way, I re sized all of the pictures to 25% of their original size, and the speed is back to normal!

Now to fix the lack of alpha channel (gee, thanks ms paint  <_<)

*

Offline Evil

  • 1112
  • 1
  • 1723
    • View Profile
Re: slow down
« Reply #8 on: August 09, 2010, 01:08:30 »
Maybe you should merge some custom objects together so they can have the same purpose, and less on the screen! :)