native flag client vs playtest mismatch

when running the “–!native” flag within the roblox studio playtest it seamingly functions durring a playtest on local scripts, allowing me to pull 165 FPS with my 256x256 classic NES style game, but that exact same game running on the acctual roblox player would get 4 FPS and 30/60 expected game ticks per second.

Expected behavior

when running the game in roblox studio i expect the same performance as im getting in the roblox game engine.

A private message is associated with this bug report

its super nonsensical because this flag makes processing graphics on the server more powerful than on the client, meaning im forced to add delay to any graphical update just because im processing that graphic on the server.

Native codegen currently is only supported on the server and Android clients, as well as in Studio play-sessions. That is the performance disconnect you’re witnessing.

then why is my performance significantly better in studio? i moved all of my logic serverside & stream the graphics to my client & that improved the fps & tps of the game.

i might have missunderstood, are you saying that native codegen is server only, but client side is possible on android & roblox studio?

i might have missunderstood, are you saying that native codegen is server only, but client side is possible on android & roblox studio?

Yes. On Android and in Studio, client side --!native is supported. On all other client devices it is not enabled.

in the article about native codegen it did not mention the word “local” a single time, this seams like a lack of documentation. Native code generation | Documentation - Roblox Creator Hub

We should improve this! I apologize for the confusion.

there should also probably be a reasoning for this added to the page

this thread for example “Enable --!native for clients” is an example of people wanting this feature. If no good reason is given, there will be an abundance of threads about this issue.

The feature missing on windows vs on android makes little se sense with my current thought process.

1 Like

Part of the reasoning is that Apple won’t let Roblox activate native code generation on their iOS devices.

1 Like

I added a footnote to the documentation there on supported platforms. Previously it just said server-scripts.

1 Like