Bad calculational performance on the RobloxPlayer

The RobloxPlayer is up to x10 times slower than the studio! even though it’s probably meant to be more optimised

I’ve been doing the Matrix library and after i tested it in Studio and in RobloxPlayer

PC Results Player:

PC Results Studio:
image

As you see, the difference is immense!
even worse on phones, up to 100x slower, the pc, of course, is faster, but it’s still the performance of the single thread.

I’ll leave the place where you can test it
Matrix.rbxl (59.2 KB)

1 Like

Is it just client that is showing the slow speeds? If so that’s a result of client not supporting --!native, which you’re using (unless something has changed without me knowing).

1 Like

Yes, you’re right, i tested without --!native tag and the performance was the same.

Then the problem, why the client doesnt support !native and why does the server support it (in roblox player)?

I tried with @native, but still doesnt work.

Is something is going on with native on the client?

Native codegen is a harder problem on client given all the different devices than on server. I believe there is work in this area, but as of today that’s the limitation.

4 Likes

We are currently investigating the possibility of deploying native code generation on client platforms, but of note is that the security and app store policies of some of our supported platforms explicitly restrict or entirely disallow the use of the underlying techniques involved in native code generation. We will update folks if/when we are able to about any expanded support onto client platforms.

3 Likes

Thank you for explanation.

Does that mean that the native code generation will be problematic only on phones?