-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modernization of lib? #166
Comments
My IDE (WebStorm) goes into HIGH cpu mode when I open the lib because of no semicolons, is why I bring it up. |
lol sounds like a bad IDE… |
But yes, the library could use some modernization in terms of cleaning up into classes, separate files, etc. and adding better style formatting + linting. |
I started looking into a bottleneck I was having, and took a step back and saw we're making fairly heavy use of In some cases, the compiler can optimize the code, especially if it is highly repetitive, but it still warrants some attention, I think. Yes, this is just chrome, but by implication, it is node. Here are firefox's results, just for comparison: I'd be surprised, even with the millions of operations per second, if we actually could see much of a change, but because it is of good practice, I've started taking a stab at translating what we have currently over to a full class structure, with |
Behold! Classes! - f5139a2 |
Noice. Thanks for cleaning up the directories/structure of the project, too |
I've got most of the library working fine, but for some reason when I get to the test where it is failing in travis I've narrowed it down to the |
No. Some cursory searching for the term suggests we're writing to memory we don't own? I'm not sure how that's possible. Could be a Travis issue |
I miss-read the travis failure, it is legit, however the issue I was seeing, though near that failing unit test, actually seems to come from this line: assertOk("x < 0 full width", function() {
gl.copyTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, -1, 0, 16, 16);
}); Later, when the context is being disposed, it throws the |
Pushed some changes that fixed nearly all unit test breaks. Maybe tomorrow or Tuesday we'll be near or at a pull request. Just fyi. |
PR opened #168 |
…ufferStatus-high-cpu FIX #166 const let and precheck framebuffer status high cpu
I'm curious what thoughts are on moving constructors into their own files, as classes, some cleanup, and adding semicolons?
The text was updated successfully, but these errors were encountered: