Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 42116ab

Browse files
==
=
authored and
=
committed
[#51] add cache construction in the init method
1 parent 2a28a24 commit 42116ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎Unity/Assets/NativeScript/Bindings.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public static class ObjectStore
3838
public static void Init(int maxObjects)
3939
{
4040
ObjectStore.maxObjects = maxObjects;
41+
handleLookupByHash = new Dictionary<uint, int> ();
42+
hashLookupByHandle = new Dictionary<int, uint> ();
43+
freeHandleStack = new Stack<int> ();
4144

4245
// Initialize the objects as all null plus room for the
4346
// first to always be null.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /