Skip to content

Commit 3e1a041

Browse files
committed
Try removing fast object get
1 parent 8273768 commit 3e1a041

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Runtime/Code/Luau/LuauCoreCallbacks.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -807,10 +807,10 @@ static unsafe int getProperty(LuauContext context, IntPtr thread, int instanceId
807807
Type t = cacheData.Value.t;
808808
try {
809809
// Try a fast write on value type (Vector3, int, etc. Not objects)
810-
if (FastGetAndWriteValueProperty(thread, objectReference, cacheData.Value)) {
811-
Profiler.EndSample();
812-
return 1;
813-
}
810+
// if (FastGetAndWriteValueProperty(thread, objectReference, cacheData.Value)) {
811+
// Profiler.EndSample();
812+
// return 1;
813+
// }
814814

815815
var value = GetValue<object>(objectReference, cacheData.Value);
816816
if (value != null) {

0 commit comments

Comments
 (0)