PC Info: Windows 11 22621.2506 Intel Core I3-10100F
Date First Experienced: 04/11/2023
Date Last Experienced: 15/11/2023
Reproduction steps:
- Create 2 local scripts in starterplayerscripts
- Add a benchmark to both
Example:
wait(5) -- Let the game load first (use a different time for each script to be sure they don't skew the other's results)
local t = 0
local startTime = os.clock()
for i =1, 1000000000, 1 do
t += 1
end
print(t, os.clock()-startTime)
- Add --!native to the start of one of the scripts
- Compare the times between them
In studio, the native script will run faster, but in the client, they’ll take around the same time
I am not sure if local scripts are supposed to be able use native codegen, or if they aren’t if it’s planned for the future, but there shouldn’t be a discrepancy between the client and studio
Example game: Bedu009's Place Number: 89 - Roblox