Commit b709222
authored
Hook up Tools.PerformanceLogLevel / Tools.StartPerformanceCounter / Tools.EndPerformanceCounter to Babylon Native counterparts (#17450)
NativeTracing has been partially implemented in Babylon Native for a
long time. These changes hook up the Babylon.js perf tracing related
APIs in Tools to the Babylon Native tracing APIs. This extra
functionality will only execute in the context of Babylon Native, and is
resilient to older versions of Babylon Native. For these changes to
fully work, they need
BabylonJS/BabylonNative#1569.
Couple additional changes related to our native interfaces:
- I did a little bit of cleanup on the `INative` interface to make it
more type safe
- ~I added a declation for the `_native` global in
`INativeInterfaces.ts`, which makes it visible globally everywhere so it
doesn't have to be redeclared in every file it is used in. However, I
declared it as potentially undefined (since it is), so I didn't touch a
few files that already declared it as non nullable (like NativeEngine)
as there would be a ton of changes and I didn't want this PR to get too
overloaded.~ Never mind, not in the mood to battle the custom umd type
declaration generation script today.1 parent f56e8e7 commit b709222
File tree
4 files changed
+76
-14
lines changed- packages/dev/core/src
- Engines
- Native
- Misc
4 files changed
+76
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
417 | 423 | | |
418 | 424 | | |
| 425 | + | |
419 | 426 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
427 | 448 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2615 | 2615 | | |
2616 | 2616 | | |
2617 | 2617 | | |
2618 | | - | |
| 2618 | + | |
2619 | 2619 | | |
2620 | 2620 | | |
2621 | 2621 | | |
| |||
2628 | 2628 | | |
2629 | 2629 | | |
2630 | 2630 | | |
2631 | | - | |
| 2631 | + | |
2632 | 2632 | | |
2633 | 2633 | | |
2634 | 2634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| |||
1328 | 1333 | | |
1329 | 1334 | | |
1330 | 1335 | | |
| 1336 | + | |
| 1337 | + | |
1331 | 1338 | | |
1332 | 1339 | | |
1333 | 1340 | | |
1334 | 1341 | | |
1335 | 1342 | | |
1336 | | - | |
1337 | | - | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
1338 | 1351 | | |
1339 | 1352 | | |
1340 | 1353 | | |
1341 | 1354 | | |
1342 | | - | |
1343 | | - | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1344 | 1363 | | |
1345 | 1364 | | |
1346 | 1365 | | |
1347 | 1366 | | |
1348 | 1367 | | |
| 1368 | + | |
1349 | 1369 | | |
1350 | 1370 | | |
1351 | 1371 | | |
| |||
1398 | 1418 | | |
1399 | 1419 | | |
1400 | 1420 | | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
1401 | 1444 | | |
1402 | 1445 | | |
1403 | 1446 | | |
| |||
0 commit comments