@lightningjs/blits 1.21.0 → 1.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/index.d.ts +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -806,7 +806,7 @@ declare module '@lightningjs/blits' {
|
|
|
806
806
|
/**
|
|
807
807
|
* Configures the gpu memory settings used by the renderer
|
|
808
808
|
*/
|
|
809
|
-
gpuMemory
|
|
809
|
+
gpuMemory?: {
|
|
810
810
|
/**
|
|
811
811
|
* Maximum GPU memory threshold (in `mb`) after which
|
|
812
812
|
* the renderer will immediately start cleaning up textures to free
|
|
@@ -816,7 +816,7 @@ declare module '@lightningjs/blits' {
|
|
|
816
816
|
*
|
|
817
817
|
* @default `200`
|
|
818
818
|
*/
|
|
819
|
-
max
|
|
819
|
+
max?: number,
|
|
820
820
|
/**
|
|
821
821
|
* Target threshold of GPU memory usage, defined as a fraction of
|
|
822
822
|
* the max threshold. The renderer will attempt to keep memory
|
|
@@ -824,13 +824,13 @@ declare module '@lightningjs/blits' {
|
|
|
824
824
|
*
|
|
825
825
|
* @default `0.8`
|
|
826
826
|
*/
|
|
827
|
-
target
|
|
827
|
+
target?: 0.8,
|
|
828
828
|
/**
|
|
829
829
|
* Interval at which regular texture cleanups occur (in `ms`)
|
|
830
830
|
*
|
|
831
831
|
* @default `5000`
|
|
832
832
|
*/
|
|
833
|
-
cleanupInterval
|
|
833
|
+
cleanupInterval?: 5000,
|
|
834
834
|
/**
|
|
835
835
|
* Baseline GPU memory usage of the App (in `mb`), without rendering any
|
|
836
836
|
* textures. This value will be used as a basis when calculating
|
|
@@ -839,7 +839,7 @@ declare module '@lightningjs/blits' {
|
|
|
839
839
|
*
|
|
840
840
|
* @default `25`
|
|
841
841
|
*/
|
|
842
|
-
baseline
|
|
842
|
+
baseline?: 25,
|
|
843
843
|
/**
|
|
844
844
|
* Whether or not the max threshold should be considered
|
|
845
845
|
* as a strict number that can not be exceeded in any way
|
|
@@ -850,7 +850,7 @@ declare module '@lightningjs/blits' {
|
|
|
850
850
|
*
|
|
851
851
|
* @default false
|
|
852
852
|
*/
|
|
853
|
-
strict
|
|
853
|
+
strict?: false,
|
|
854
854
|
},
|
|
855
855
|
/**
|
|
856
856
|
* Defines which mode the renderer should operate in: `webgl` or `canvas`
|