Deactivated User
03/05/2021, 10:16 AMcoroutineContext
, or being called from a suspend function. You can use the old version with playOld
but you might have issues with sounds being stopped in some cases. Details here: https://github.com/korlibs/korge-next/pull/181
## Fixes
* Fixed BitSet memory usage. https://github.com/korlibs/korge-next/pull/179 Thanks @andrei-cosmin !
* Added missing Pinned<FloatArray>.startAddressOf
and Pinned<DoubleArray>.startAddressOf
* Fixes AudioData.toStream hang
* Prevents audio from stop working when spamming on JVM/JNA/OpenAL
* Fixes audio not playing when loaded from one coroutineContext Job that was already completed
* Fixes audio startup on JS. Now it tries to unlock audio when KorGE starts, so any initial user input event will unlock audio.
## New features
* Support trimmed atlases on BaseImage, Sprite, etc. https://github.com/korlibs/korge-next/pull/172 Thanks @jobe-m !
* Added FlagFilter. https://github.com/korlibs/korge-next/pull/182 Thanks @MikeSmithEU !
* Added arrayinterleave
to kmem
* Added FastByteTransfer
, FastShortTransfer
, FastIntTransfer
, FastFloatTransfer
to be able to unsafely read/write from/to arrays faster on K/N while working on all the targets
* Added waitSubscriber
and waitSubscriberCloseable
## Performance improvements
* Substantial performance improvement on audio on Android and Win32
* Cache refresh rate from displays (fixes low framerate regression on some linux setups)
* arraycopy in MemBuffer is now faster on Kotlin/Native
* arrayfill now uses the embedded array filling from the stdlib
* WeakMap.getOrPut is now inline
* Improve performance of some Audio operations on all the targets
## Deprecations
* Deprecate redirect(KProperty)
and KProperty.redirected
since by ::field
already does that on latest versions of Kotlin