mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-27 18:38:14 -05:00
Update #51 - Protocol and FPS improvements, better workspace
This commit is contained in:
@ -78,3 +78,11 @@ eagruntimeImpl.WASMGCBufferAllocator["getIntBufferView"] = function(addr, length
|
||||
eagruntimeImpl.WASMGCBufferAllocator["getFloatBufferView"] = function(addr, length) {
|
||||
return new Float32Array(heapArrayBuffer, addr, length);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {function(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array)} cb
|
||||
*/
|
||||
eagruntimeImpl.WASMGCBufferAllocator["setHeapViewCallback"] = function(cb) {
|
||||
heapResizeHandler = cb;
|
||||
callHeapViewCallback();
|
||||
}
|
||||
|
Reference in New Issue
Block a user