⇠ More posts

Defold release 1.9.5

By Björn Ritzl on Nov 19, 2024

Tagged as: Release notes


Defold 1.9.5

Summary

  • NEW: (#9636) Remove unused world constant from tile_map in builtins (by FlexYourBrain)
  • NEW: (#9644) Automatically calculate the maximum number of game objects required for a runtime collection (by AGulev)
  • NEW: (#9649) Add the engine-setup script tag to the HTML5 template (by aglitchman)
  • NEW: (#9659) Misc platform fixes for extensions (by Jhonnyg)
  • NEW: (#9562) Add a read-only property for the Current Node in the GUI. (by AGulev)
  • NEW: (#9475) Http cache improvements (by Jhonnyg)
  • NEW: (#9610) Add support for pivot points for atlases (by JCash)
  • FIX: (#9671) Added new property in game.project to specify minimum log level project.minimum_log_level (by AGulev)
  • FIX: (#9566) Add alpha blending before rendering profiler (by Jhonnyg)
  • FIX: (#9499) Added Switch Pro Controller for Windows (by wistpotion)
  • FIX: (#9550) Fix multi-materials in one skinning model (by jixingcn)
  • FIX: (#9563) Only split combined samplers when needed (by Jhonnyg)
  • FIX: (#9643) Fix crash when MaxDynamicTextures == 0. (by ekharkunov)
  • FIX: (#9559) Fixed issue where the horizontal scroll bar was covering the last line in the console or the code editor (by AGulev)
  • FIX: (#9637) Proper engine shutdown (by AGulev)

Engine

NEW: (#9636) ‘Remove unused world constant from tile_map in builtins’ by FlexYourBrain The unused world constant has been removed from the tile_map material from builtins.

NEW: (#9644) ‘Automatically calculate the maximum number of game objects required for a runtime collection’ by AGulev Bob calculates how many game objects are used by each collection. If the collection has no factory or collectionfactory component, this value is used to allocate the exact number of GameObjects for the world (collection proxy). Otherwise, collection.max_instances is used.

This helps save memory, especially in cases where the game has a world that requires a large max_instances value for the main game scene, but smaller and static extra scenes (such as popups, menus, etc.).

NEW: (#9649) ‘Add the engine-setup script tag to the HTML5 template’ by aglitchman This change brings back the engine-setup section to the HTML5 template. Developers can use it and native extensions can inject code here to add game startup parameters via the CUSTOM_PARAMETERS object, setup loading progress listeners, override the dmloader.js functions.

NEW: (#9659) ‘Misc platform fixes for extensions’ by Jhonnyg A new DMSDK function has been added that can get the OpenGL id from a rendertarget: OpenGLGetRenderTargetId. Also, Vulkan support for iOS is working correctly again after recent GLFW changes.

FIX: (#9671) ‘Added new property in game.project to specify minimum log level project.minimum_log_level by AGulev Using the new game.project property project.minimum_log_level, it is possible to specify the minimum log level for the logging system. Only logs at the minimum level or higher will be shown.

FIX: (#9566) ‘Add alpha blending before rendering profiler’ by Jhonnyg Forced the in-game profiler to always be rendered with alpha blending.

FIX: (#9499) ‘Added Switch Pro Controller for Windows’ by wistpotion Added Switch Pro Controller for Windows.

FIX: (#9550) ‘Fix multi-materials in one skinning model’ by jixingcn Fixed an issue where custom vertex attributes are applied only from the first material in a situation where the same material is used across multiple material slots in a model file, but where each sub-material has overridden attributes.

In the .model file, the order of materials must be the same as in the original model file(.glb). (Notice: the defold editor will reorder all materials by name when you edit and save the model.)

FIX: (#9563) ‘Only split combined samplers when needed’ by Jhonnyg Partial fix for #9533, the issue will still persist when building with WebGPU.

FIX: (#9643) ‘Fix crash when MaxDynamicTextures == 0.’ by ekharkunov Setting dynamic textures to zero in GUIs no longer crashes the engine when running.

Editor

NEW: (#9562) ‘Add a read-only property for the Current Node in the GUI.’ by AGulev Added a new read-only property Current Nodes for GUI to display the number of nodes currently being used in the GUI.

NEW: (#9475) ‘Http cache improvements’ by Jhonnyg Several improvements to the HTTP support in the engine has been made:

  • Restarting a project from the editor should be significantly faster for large projects
  • HTTP requests via the http.request function for large files should also be significantly faster
  • HEAD requests in the engine should be working correctly now - you can use a HEAD request to get the size of a remote file

NEW: (#9610) ‘Add support for pivot points for atlases’ by JCash The images in an atlas now have support for a setting pivot point. The pivot is defined in units, where (0,0) is top left corner of the image, and (1,1) is bottom right of the image. The pivot is allowed to be outside of the [0, 1] range. Default is (0.5, 0.5), which is the middle of the image.

FIX: (#9559) ‘Fixed issue where the horizontal scroll bar was covering the last line in the console or the code editor’ by AGulev Fixed an issue where the horizontal scrollbar made it impossible to interact with the last line in the console or the code editor.

FIX: (#9637) ‘Proper engine shutdown’ by AGulev Engine side fix for https://github.com/defold/defold/issues/9606

The engine shouldn’t crash on De-init if error happened during initialization