Thanks, it would be quite useful If I could write ints/floats to 
ArrayBuffer without creating multiple views... 

2016年11月4日金曜日 5時34分49秒 UTC+9 Isiah Meadows:
>
> In my experience, DataViews are way slower than typed arrays, and it's a 
> known issue <https://bugs.chromium.org/p/v8/issues/detail?id=3533>. They 
> delegate to C++ instead of generating code at runtime for it (with just 
> SMIs, it's comparable to a standard function call in generated assembly 
> length), which is probably the bigger slowdown (it's faster there than even 
> in normal JS).
>
> On Thursday, November 3, 2016 at 7:01:37 AM UTC-4, vroad wrote:
>>
>> Well, changing loop statements improved performance. But batching is 
>> still too slow on mobile devices..
>>
>>
>> https://github.com/openfl/starling/blob/b1a458f7283a7e3673146049a6c05124ecd3d7fe/starling/rendering/VertexData.hx#L248-L260
>>  
>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fopenfl%2Fstarling%2Fblob%2Fb1a458f7283a7e3673146049a6c05124ecd3d7fe%2Fstarling%2Frendering%2FVertexData.hx%23L248-L260&sa=D&sntz=1&usg=AFQjCNGwJKtPWuozJ7KDr4N8mCOV47rJAQ>
>>
>

I've found another issue while working on Starling. TypedArray.set runs 
significantly slower with short inputs.
Starling copies 80 bytes to copy the vertex data of each quad before doing 
transformation, but this seems slow especially on Android.
A loop that copies 4bytes*20 elements runs significantly faster than set 
function. I've experienced the same issue on .NET, so is this even possible 
to fix?

There is an issue on this as well, but not updated for a long time.
https://bugs.chromium.org/p/v8/issues/detail?id=3590 

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to