This new Gideros released is focused on memory consumption. A lot of work has been done to allow dealing with a lot of sprites without taking too much memory. A typical Sprite used to take 2kB of RAM, they are now 30% lighter. It is something, but not enough if you want to draw millions of sprites, so a new feature has been introduced: Ghosts
Ghosts are kind of lightweight Sprites: you tell Gideros to render the same real Sprite with slight variations. Not everything is possible, but it currently supports changing the layout position (gridx/gridy in layout constraints), the color of a pixel, the text and color of a textfield. More will be added in the future. The idea is that those ghosts only take a hundred of bytes of memory, since they share the rest of the settings with the original real Sprite. With this system, Gideros can now render a table of several millions of cells at a fraction of the memory cost of full Sprites.
Another new feature: you can now create sounds directly from a lua array, simplifying the use of sounds in Gideros pure code demos, and allowing lua generated sound streams.
For the full list of additions and changes, see below:
New features[core] Add math.fft() and math.ifft()
[gfx] Implement Sprite ghosts (Sprite,Pixel,TextField)
[audio] Allow to create sounds from raw waveform data
[export/linux] Support fullscreen and Screen API
Improvements[layout] Reduce memory usage
[layout] Add a fixed grid layout parameter telling Gideros to ignore children size requirements
[gfx] Deactivate clipping when 3D transform is detected
[gfx] Significantly reduce sprite memory usage
[gfx/textfield] Faster recoloring in most cases
[gfx/pixel] Reduce memory usage
[gfx/movieclip] Make native tween functions available to lua
[audio] Allow streaming a wave file
[studio] Add icons for Apple and Linux exports
[export/uwp] Use UWP Storage API to access files outside sandbox
Fixes[library/3d] fix missing alpha value for fbx (json) models
[gfx/layout] Avoid setting invalid bounds on sprites (if computations are still ongoing)
Download it from here:http://giderosmobile.com/download
Comments
Fragmenter - animated loop machine and IKONOMIKON - the memory game
also, wacom pen pressure support should work in linux-qt i guess (am i right?), what about the other linux export?
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: keszegh
EDIT: There are plans to add touch support to GLFW, but can't tell if/when that'll be done: https://github.com/glfw/glfw/pull/1736
In the end, it would be great to remove the need for GLFW and deal with X server directly, but that's probably a lot of work and learning
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Do you want me to send it to you for testing ?
see e.g., https://github.com/glfw/glfw/issues/403
but it is not clear to me if there is a working solution or not.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Ghost question: is it automatically applied?
I tried this code with no luck
Likes: MoKaLux
And I will do the wiki pleaseDONE in the Sprite class (I only copied hgy29 text and sample code below ). Plus added fft ifft to Math.Likes: hgy29
Likes: MoKaLux, vitalitymobile
- Improved particles: 32bit indices and new Particles:getNumParticles() call
- Ghosts now support a 'transform' parameter, which will be a 'Matrix' object
- MacOS fixes
- Linux luamidi plugin
- And more various fixes
Likes: vitalitymobile, pie, keszegh, MoKaLux, SimplesApps, SinisterSoft
Thank you
EDIT: nevermind I found the issue, now alpha is not optional anymore, if you pass a color then you must pass its alpha as well. Issue solved
Likes: MoKaLux
EDIT: nevermind I found the issue, now alpha is not optional anymore, if you pass a color then you must pass its alpha as well. Issue solved
Would it be possible and easy to have all the NUMPAD keys available?
NUM_DOT, NUM_ENTER, NUM_PLUS, NUM_MINUS, ...
Second question: would it be possible and easy to have MODIFIERS work with the NUMPAD keys (like in Gideros Studio)?
ALT CTRL SHIFT + NUM_0, NUM_1, NUM_2, ...
I have tried the following code but it is not working for me:
PS: regarding below answer by hgy29, that is awesome, thank you very much captain
Modifiers should already work with numpad keys, except they weren't defined. By the ways you should use 'e.modifiers' instead of getKeyboardModifiers()
Likes: MoKaLux
Some sample code:
I downloaded this version on Windows and I wanted to export for Android but it doesn't write the package name in the exported Android manifest.
Is that a bug?
Likes: zeroexu