Hello Studzers! I am radoje, a partner here at Studz, we have been working hard to improve the overall engine, and one of the biggest issues we found was our Lua API, we found many memory errors that made scripting near impossible and found that it was one of the biggest issues in our engine.
Thus we have designed Dialect, a new Luau based scripting API, we've designed it with speed in mind. I'll share some benchmarks below, everything is measured in wall-clock time for a single operation.
us = microseconds, ms = milliseconds
Operation 1
20 scripts, 50 part updates each, per step
________________________________
Old runtime (previous Lua API) was recorded at 4.2ms.
Dialect was recorded at 0.29ms for the exact same operation.
Operation 2
Read position on 200 parts
________________________________
Old runtime was recorded at 165us
Dialect was recorded at 21us
Operation 3
Write position on 200 parts
________________________________
Old runtime was recorded at 215us
Dialect was recorded at 23us
Operation 4
Vector math, 10,000 iterations
________________________________
Old runtime was recorded at 10.6ms
Dialect was recorded at 0.22ms
Operation 5
List 5,000 children
________________________________
Old runtime was recorded at 2.3ms
Dialect was recorded at 0.32ms
Operation 6
Raycast
________________________________
Old runtime was recorded at 115us
Dialect was recorded at 12us
In real world performance this will show about a 10x speedup, from 7x to 14x on typical operations. Of course these operations are not completely accurate to a developers average workload, but they show how much better Dialect is speed wise.
We'll be releasing Dialect on November 1st, with documentation releasing soon, and sneak peeks releasing later today.
[DEV] Announcing Dialect
1 reply · 91 views
assuming this fixes the occasional random crashes that happen for some reason, all for it
