Skip to content

Using Float32Array slower than var #3

@notlion

Description

@notlion

Hey! First of all thanks for the nice lib. I started on a similar low-level webgl wrapper but GLOW seems pretty clean so i'm giving a try.

I wonder though what is the reason for using Float32Arrays in your Vectors and Matrices? I did a little test, and operations are about 8-10x slower than var in Chrome, and 2x in Firefox:

http://bin.onecm.com/posts/testGLOWVector3/

This is tested on Chrome 13.0.782.41 beta and Firefox 4.0.1

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