Don't Miss Out

Follow us now so you don't miss new releases!


Lightning Draw

EpicPixel

6.42 seconds

aruche

23.01 seconds

Aphrodite

53.04 seconds

For the first 3 people to download this release!

Quick Draw

Guest

2m 3s

Rexu

3m 22s

Rexu

4m 36s

Guest

4m 7s

zenox98

6m 36s

Guest

6m 56s

Guest

7m 35s

Colludium

7m 51s

anty21ro

10m 6s

Guest

11m 55s

hajas

12m 49s

Be one of the first 15 people to download this release!

Construct 2 Release r242

This is a Beta release. Beta releases have the cutting edge features but may have bugs in them. Download the latest Stable release instead here.
Download

59.3 mb, Windows 8/Windows 7/Vista/XP

Friday, January 20, 2017

New this build: support for unloading audio from memory in the Audio object. This can be important for very large games which load a large amount of content from the 'Sounds' folder. (Music is generally streamed, so should not cause increasing memory usage.) Previously Construct 2 would keep all sounds decompressed in memory permanently after the first time they are used, but these actions provide a way to remove them and save memory. Note if you plan to use this, you should set the project property 'Preload sounds' to 'No', otherwise C2 will immediately reach peak audio memory usage on startup, by design.

Unloading audio causes any playing sounds to stop, so the sound can be removed from memory. Also note since Javascript is a garbage-collected language, memory usage won't decrease until the browser decides to do a garbage collection. If the system has plenty of free memory, it may not do this for a long time - but it should do it soon if memory usage is getting dangerously high. So you may not see an immediate saving after using this action, but it should still prevent crashes due to running out of memory. In Chrome's dev tools you can also press a button to force a garbage collection in the 'Timeline' tab. This can be difficult to test since it tends to benefit only the very largest projects, so we're interested in any feedback on how it works!

Changelog

Add

Audio: actions 'Unload audio', 'Unload audio (by name)', 'Unload all audio'

Change

Layers bar: no longer prompts to confirm deleting a layer if it is overridden by a global layer elsewhere in the project

Bug Fix

Flash behavior: would not load correctly from savegame if using a flash duration of infinity

Bug Fix

Duplicating a layout now also copies its editor state like snap-to-grid settings

Bug Fix

Layout view: resizing an object on one axis with snap-to-grid enabled now only snaps that axis of the object size


Do you like this release?

We'd love it if you could show your appreciation of it by retweeting and sharing it on Facebook and Twitter!

Posted by Scirra Ltd on 1/20/2017

Comments

2
aruche 4875.3k rep

Good work! Thanks for the update.

Friday, January 20, 2017 at 6:09:35 PM
1
EpicPixel 6,844 rep

Thanks for the update

Friday, January 20, 2017 at 6:12:25 PM
1
Mubot 1,340 rep

Audio: actions 'Unload audio', 'Unload audio (by name)', 'Unload all audio'
- Y E S !!!!!!!!!

Friday, January 20, 2017 at 6:25:10 PM
0
mateussales 2,421 rep

Nice work, Scirra! And please, update the steamworks plugin. It's essential for us.

Friday, January 20, 2017 at 7:07:35 PM
4
Ashley 183.5k rep

@mateussales - just did an update for C2's Greenworks plugin - www.scirra.com/forum/experimental-greenworks-plugin_t117833

Friday, January 20, 2017 at 7:31:19 PM
0
gillenew 23.2k rep

thx for the update :3

Friday, January 20, 2017 at 7:37:10 PM
1
Silverforce 17.4k rep

Good job on the audio unload.

If we ever get a way to manually load/unload images from memory, that would go a LONG way for bigger C2 games on mobiles with their limited RAM.

Friday, January 20, 2017 at 11:25:59 PM
0
mateussales 2,421 rep

@Ashley - Wow, that was fast. Thank you very much for the update! I'll try it right now.

Saturday, January 21, 2017 at 1:13:22 AM
0
saour 3,210 rep

Nice audio addition guys !

Saturday, January 21, 2017 at 10:10:43 AM
0
chadorireborn 57.6k rep

Amazing! That's why it took so long.

Saturday, January 21, 2017 at 12:23:07 PM
1
glerikud 18.6k rep

Thank you for the update. It's great to have more options to manually manage memory usage.

Saturday, January 21, 2017 at 1:44:11 PM
0
radbrothers 993 rep

Good job Scirra!

Saturday, January 21, 2017 at 4:00:22 PM
0
iceangel 30.8k rep

Thanks Scirra Team!

Saturday, January 21, 2017 at 4:14:30 PM
0
totoyan 6,492 rep
@mateussales - just did an update for C2's Greenworks plugin - www.scirra.com/forum/experimental-greenworks-plugin_t117833quoted from Ashley

great news!

Sunday, January 22, 2017 at 2:54:22 AM
0
edisone 17.7k rep

AWESOME...thank you

Sunday, January 22, 2017 at 10:25:13 AM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.