Integrate react-native-skia in a ECS / Gameloop #3224
Unanswered
bastischulz
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey, were you able to find an answer for that? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm in the process of building a simple (multiplayer) game. (Agar.io optics) I came across the following problem:
I have many game objects that are added and removed - so a dynamic list of a large number of objects that are on the screen at the same time.
My game logic runs in a game loop at a fixed rate because the logic has to run later on the client and on the server.
Now my question: How (via which api) can I best bring all my game objects and my hud data efficiently to the skia canvas in my RenderSystem - i.e. preferably without setState from React, but on the ui thread?
The Picture, Atlas and offscreen rendering all don't seem to be 100% the right approach, or am I looking at it wrong?
I have react-native-reanimated installed already.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions