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
Two diagnostic screens were added to the example app so you can reproduce the issues highlighted in the code review:
44
-
45
-
-`Async Runner Starvation` (`apps/example/src/Diagnostics/AsyncStarvation.tsx`) shows that a zero-delay `setTimeout` never fires before `device.createRenderPipelineAsync()` resolves because the event loop is kept busy. Launch the example app and open the screen from the home list to observe the stalled timer.
46
-
-`Device Lost Promise Hang` (`apps/example/src/Diagnostics/DeviceLostHang.tsx`) forces a synthetic device loss by calling the native `forceLossForTesting()` helper. On the current build the `device.lost` promise remains pending indefinitely, confirming that the loss callback is never delivered once pumping stops.
47
-
48
38
## Usage
49
39
50
40
Usage is identical to Web.
@@ -158,8 +148,8 @@ From there you will be able to run the example app properly.
158
148
159
149
## Similarities and Differences with the Web
160
150
161
-
The API has been designed to be completely symmetric with the Web.
162
-
For instance, you can access the WebGPU context synchronously, as well as the canvas size.
151
+
The API has been designed to be completely symmetric with the Web.
152
+
For instance, you can access the WebGPU context synchronously, as well as the canvas size.
163
153
Pixel density and canvas resizing are handled exactly like on the Web as well.
In React Native, we want to keep frame presentation as a manual operation as we plan to provide more advanced rendering options that are React Native specific.
166
+
In React Native, we want to keep frame presentation as a manual operation as we plan to provide more advanced rendering options that are React Native specific.
177
167
This means that when you are ready to present a frame, you need to call `present` on the context.
0 commit comments