Skip to content

Is the usage of Int8Array instead of Uint8Array intentional? #8

@nakedible

Description

@nakedible

I am wondering if the usage of Int8Array as the underlying voxel array type intentional? This means that materials > 127 will end up as negative values, which means they cannot be used directly as indexes to any materials array lookup. A simpler choice would seem to just declare it as Uint8Array.

Perhaps there is some magic performance reason for this, but I do not know of any.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions