You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace Napi methods with properties where possible #1010
Methods like NativeEngine::GetRenderWidth start to appear in CDT profiling. It's called (at least) once per frame even with that few calls, it's slow enough to rise in the top methods.
(
Activity
[-]Replace Napi method with properties[/-][+]Replace some Napi methods with properties[/+]ryantrem commentedon Feb 24, 2022
We have a number of places where we require function calls into native (either as actual functions or
InstanceAccessors) that I think could be worth fixing. This is another example: https://github.dev/BabylonJS/BabylonNative/blob/4fd6df8541c5bc0ae98a9db7879917f46dbc0eb2/Plugins/NativeCamera/Source/NativeVideo.cpp#L19-L24[-]Replace some Napi methods with properties[/-][+]Replace Napi methods with properties where possible[/+]