You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thought you/typed-array-buffer-schema may want to eventually add serializing/deserializing half-precision float16s.
We have a float-heavy networked game, and lossy conversion to half floats is mostly negligible, especially on mostly visual quantities. Haven't (yet) noticed any visual pops or extrapolation issues. Did cut our bandwidth down by almost 4x though!
Example buffer conversion logic is here: HalfFloat.ts, where you read/write the value to a buffer as a uint16 - feel free to use/adapt into typed-array-buffer-schema if that's something useful to you!
The text was updated successfully, but these errors were encountered:
reececomo
changed the title
Feature: Add 16-bit float support
Feature: Add 16-bit float support?
Feb 25, 2024
Hey, thought you/typed-array-buffer-schema may want to eventually add serializing/deserializing half-precision float16s.
We have a float-heavy networked game, and lossy conversion to half floats is mostly negligible, especially on mostly visual quantities. Haven't (yet) noticed any visual pops or extrapolation issues. Did cut our bandwidth down by almost 4x though!
Example buffer conversion logic is here: HalfFloat.ts, where you read/write the value to a buffer as a
uint16
- feel free to use/adapt into typed-array-buffer-schema if that's something useful to you!The text was updated successfully, but these errors were encountered: