In this release we’ve added a new
profiler module. It allows you to monitor the CPU and Memory usage of your app, through the functions
profiler.get_cpu_usage() as reported by the OS (these are not currently available from HTML5).
We’ve also added HTML5 support for native extensions, see notes below for more information.
For those that don’t need the full support of native extensions, we have added the function
Now it’s also possible to create
msg.url() objects before referred collection is loaded (e.g. as script properties). They can now also be reused between reloading the collection.
DEF-1058- Added: Profiler memory and CPU usage information.
DEF-2685- Added: HTML5 support to native extensions.
DEF-2727- Added: Addded
msg.url()can be created before collection is loaded, and also be reused (msg.socket is a hash).
DEF-2721- Fixed: Bob.jar now lists all options (including defoldsdk).
We have now added support for building your native extensions for HTML5
It works both when using ‘Build HTML and Launch’ as well as when bundling.
Editor 2 support for HTML5 native extensions is being worked on and will follow shortly.
We also fixed an issue during the sprint where the build server didn’t take all the
Android flags, linkFlags and libs into account.
There is a new section on the site called “Examples” where you can find small contained examples on how to do common things in Defold. We will expand this section and are taking requests!
EDIT: 2017-05-31: NOTE!
I just wanted to mention that while fixing DEF-1995, we changed the type of the message socket from a Lua number to a hash. So, if you for some reason relied on the type of that member, e.g. using string operations, you might need to patch your code. We believe this is a rare case though.
One such case could be if you printed the socket name like so:
print(url.socket .. " <- mysocket").
This happened to expose another issue (DEF-2740), where a concatenation of a hash and a string failed.
This issue has been fixed and will be in the next release (1.2.106)
Sorry for any inconvenience!
/The Defold team