Defold 1.2.146
This release adds a new “vertex space” option for materials used by 3D models. This option decides in which space the vertices are exposed for a model; either in object/local space or world space. World space is the old behaviour, where vertex calculations are all done on the CPU, while local space will not transform the vertices but instead pass along the matrices to the shader so it can be performed on the GPU instead. This means that models with materials that has the local space option cannot be batched, but scenes and models with a large amount of vertices can gain a big performance increase by offloading the transform to the GPU.
WebView moved to Native Extension
Another change, and a big step for us moving forward with keeping the runtime as small as possible, has been to extract the webview
module into a real native extension library. Our plan is to continue this work and extract even more modules into official native extensions. webview
was a good initial candidate for us to learn what removing modules from the core would mean and what work needs to be done, without annoyances to the majority of Defold users. If you previously were using webview
, you will need to add the following URL to your dependencies in game.project
:
https://github.com/defold/extension-webview/archive/master.zip
The documentation for webview
is now available here: https://defold.github.io/extension-webview/
For more information and discussion, see this forum post.
Editor 1 deprecation
If you are still using the old Eclipse based Defold Editor 1, now it’s a good time to update to Editor 2 since the old editor will not receive updates after 31st of March 2019 . Users of Editor 1 will now see a new message when they update that explains where to download the newest editor.
Engine
-
DEF-3006
- Added: Unbatched/view-space mode for 3D models. -
DEF-3715
- Changed: Movedwebview
into an external native extension. -
DEF-2302
- Changed: Deprecation log message inrender.draw_debug2d
calls. -
DEF-3742
- Changed: Removed Wine support on Native Extension server -
DEF-2663
- Fixed: Fixed issue withwebview.set_visible
on Android. -
DEF-3745
- Fixed: Renderer now supports up to 16 render constants. -
DEF-3746
- Fixed:tilemap.set_tile
on index0
yielded error incomp_collision_object
. -
DEF-3728
- Fixed: Crashes related topush.schedule
. -
DEF-3687
- Fixed: Tilemap collision shapes were wrong when tilemap was very large. -
DEF-3720
- Fixed: Regression intilemap.set_tile
, incorrect interval check. -
DEF-3713
- Fixed: More profile scopes related to script functions. -
DEF-3716
- Fixed: Profile scopes in web profiler are now sorted. -
DEF-3737
- Fixed: Detection ofis_music_playing()
on Android is improved and music is no longer automatically muted. -
DEF-3734
- Fixed: Web profiler showed wrong timings on Windows.
Editor
We have fixed so that double clicking a game.project
file under macOS will start the editor and open the correct project. (Note: This feature currently only works for fresh installs of the editor. It will be available through auto-update once we have fixed the new editor-update flow currently being worked on.)
-
DEFEDIT-1523
- Fixed: Double clicking agame.project
will open the project in Editor 2. -
DEFEDIT-1525
- Fixed: Copying build errors as text.