• Register

I'm a 15yo indie developer. I all my life loved the indie games (<3). I started when i was 6yo. I understand AS3||AS2, A bit of Java && Lua, and why not, some of HTML. Actually i'm working on Dimentionalz

RSS My Blogs

The definitive optimization. Development tips

TiosneyStudio Blog

Finally, i improved the game on a never seen level! LOL.

Flash is naturally the slowest IDE. Thats obvious, (It should be named Slash, SLow ash xD) but i changed that. No, i didn't modified the adobe source code. [Mind note, change the flash soruce code okno]. I improved it on a never-seen level, and i will tell to others how to make it.

By the way, i checked my game with Adobe Scout. This is a software designed to check the performancye on your SWF's with a simple diagramm and some advanced things to show what scripts, renders, or any other things can lower the performance.

When i knew what was the highest performance impact, in my case, the render scripts, i had to do something.

  • The looped calculations have high performance impacts.

always use integer numbers, not calculations.

var im:int = cam.x - 10;

for(var i:int = 0; i < im; i++){

IS SLOWER THAN

for(var i:int = 0; i < 10){var something:int = i+cam.x}

  • Lots of symbols, vectors, shapes or other things are slow

Flash renders ALL, still if its out of the scene. To fix this, i recommend using a tile-based system and caching all the tiles.

  • Tiles are faster

Did you think that a tile-based game is ugly? That may be true if the developer doesn't make something to improve this. But there's something true, tiles are faster. In example, raycasting 100 pixels is slower than raycasting 4 or 2 tiles.

  • All in one...

This one is all that you think that is not. I thinked so when i readed this, but its faster. The trick is that, don't distribute all in diferent enter frames (if possible). This, strangley, makes a better ordering for the FPS, making a better performance, rare, not so?

  • Looped loops are slow

NEVER place a for in an EnterFrame event without the correct optimizations.

DONT DO:

function onenterframe(e:Event):void{

for(you_know_what_goes_here){}

}

I recommend doing so:

var something:Boolean = true

function onenterframe(e:Event):void{

if(something){

something = false;

for(var i:int = 0; i<max;i++){

if(i == max-1) something = true;

}

}

}

That looks longer, but its faster.

That's all by now, hope it helps you, TiosneyStudio here, peace out!

The diary of the developer #3: Insert text here

TiosneyStudio Blog

THE DIARY OF THE DEVELOPER: DIMENTIONALZ

I am working on an update, "The [INSERT TEXT HERE] Update" (This is entirely the name, "INSERT TEXT HERE" is part of the name. The update will be about customizing the game, surely you can change the player/s skin, a preferences.json file, and different updates that will come on this update.

Too, i am thinking on do some sound and graphic changes, ¿why? I will show them. I will show them all...

The diary of the developer #2: Auras and elements!

TiosneyStudio Blog

The diary of the developer: DIMENTIONALZ

Welcome people from the internet to a new TDOTD: Dimentionalz. This time i have been working on the auras and elements, i decided to name so some auras:

Corruption: Taintatio

Perfection: Angelias

I know, i am not creative with the names, btw i was also trying to improve the player's animations and skin. This will now have legs (lel) and a better head... with eyes... leave me alone guys... xD

I decided to start April Fools releases (I didnt think on it at first). These will have URND (Ultra RaNDom) weird content, if some youtube likes my game and he plays it (in a serie if possible). I would try to send him/her an special file with the april fools for the day. So the users would feel more trolled xD. Maybe in the future...

Finally i started some optimization in ALL the code structure to make it more readable for Flash (I would like that flash can be faster). Btw that was all the TDOTDD from to day. See ya next day! Peace out!

PD: My cat loves indie development lel #ImportantInformation


The diary of the developer #1: Auras and elements?

TiosneyStudio Blog

The diary of the developer: DIMENTIONALZ

On the future update the magic starts! wheehee! I am planning on add 7 elements to my game, as i don't know what names add to these, i decided to trust on the comunity and asking it on the forums. Hope you take a look at this ;D

Also i will add elemental shards of those elements and new crafting mechanics. Its like the normal crafting system. But you will require a [SPOILER FREE ZONE] to use it.

I am keeping it optimized. So i believe i fixed some LAG. Maybe the game will now use the Graphics Card (If possible).

Trying to add new magic biomes.

The diary of the developer #0: Falling blocks and biome config

TiosneyStudio Blog

THE DIARY OF THE DEVELOPER: DIMENTIONALZ

There aren't images because this may be #Spoiler

This day i started a new update. I guess this will not be a BIG update. Its just a little update i am making for the desert biome in the game (The zones of the world without trees). This update will include the falling blocks and some decorative blocks.

Also maybe the structure of the rendering change completely to render more blocks out of the screen so the entities can work properly and not being affected by the rendering [DIMBUG-005]

Developer note: Many weeks or months may happen until a big difference from other survival tile-based games.