More validation tests - #415
Conversation
e50e7e4 to
ad70ced
Compare
| var justOnce; | ||
| var threshold = 25; | ||
| var errorRatio = 2.5; | ||
| var errorRatio = 8.0; |
There was a problem hiding this comment.
Is this higher than what Babylon.js uses now?
There was a problem hiding this comment.
Yes! 2.5 bjs 8 here. Mostly because text is rendered in some PG.
There was a problem hiding this comment.
I'm assuming you mean text is not being rendered because we don't have text rendering yet?
There was a problem hiding this comment.
Yes! That's correct.
There was a problem hiding this comment.
We discussed this offline. The plan is to update this value only for the tests that have text and put a comment somewhere that explains why (or, at a minimum, make sure the commit message says why).
…nto missingNativeFunctions
…met/BabylonNative into missingNativeFunctions
|
Adding a bunch more test scenes this week. Back to draft. |
…met/BabylonNative into missingNativeFunctions
…nto missingNativeFunctions # Conflicts: # Apps/BabylonScripts/babylon.max.js # Plugins/NativeEngine/Source/NativeEngine.cpp # Plugins/NativeEngine/Source/NativeEngine.h
removed 1 test (fail linux)
bghgary
left a comment
There was a problem hiding this comment.
Many of these changes are not ideal and should have issues associated with them. The API macros thing should be removed completely, but maybe after my changes.
| break; | ||
| } | ||
| case WM_DESTROY: | ||
| case WM_CLOSE: |
There was a problem hiding this comment.
Not sure about this one. I'm assuming you are seeing some shutdown issues. Usually the sequence is WM_CLOSE calls DestroyWindow which then causes WM_DESTROY which calls PostQuitMessage.
There was a problem hiding this comment.
Replacing with direct errorCode for postquitmessage instead of using message param.
| case WM_DESTROY: | ||
| case WM_CLOSE: | ||
| { | ||
| short exitCode = LOWORD(wParam); |
There was a problem hiding this comment.
I'm a bit confused by this. Documentation says that the lParam and wParam of both WM_DESTROY or WM_CLOSE are not used. What does this do exactly?
| target_compile_definitions(NativeEngine | ||
| PRIVATE API${GRAPHICS_API}) # OpenGL is defined in bgfx.h. Using APIXXX instead |
There was a problem hiding this comment.
I think this should probably be in all CAPS to match typical macros which may avoid the conflict. Use https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html#string-transformations to convert to uppercase. But ideally, this shouldn't be done at all. The specific code should be in the specific files instead of using macros.
There was a problem hiding this comment.
I agree we should not see any #ifdef platform anywhere in the code but in specific .cpp files. It's mostly in shaderCompilerCommon.cpp so I'll let you do the change when you are done with your shader compilation work.
| uint16_t height = static_cast<uint16_t>(info[2].As<Napi::Number>().Uint32Value()); | ||
| bgfx::FrameBufferHandle frameBufferHandle{}; | ||
|
|
||
| // This is WIP |
There was a problem hiding this comment.
Is there an issue to track?
| 0.f, 0.f, 1.f, 0.f, | ||
| 0.f, 0.f, 0.f, 1.f }; | ||
| bx::mtxMul(tmpMatrix, value.Data.data(), flipMatrix); | ||
| bgfx::setUniform({ it.first }, tmpMatrix, value.ElementLength); |
There was a problem hiding this comment.
nit: clang format this code
…nto missingNativeFunctions # Conflicts: # Plugins/NativeEngine/Source/NativeEngine.cpp
080f466590 Added bx::hasUniqueObjectRepresentation type trait. (BabylonJS#420) 671a001d3e tinystl: reset() keeps the bucket table; clear() still shrinks to 9. (BabylonJS#419) 9f874936e2 Added ability to move file into trash. (BabylonJS#418) 9e3fadf6f1 Fixed floatFlip, SIMD variable-shift masks and %g precision, and added tests. (BabylonJS#417) 26ff6d907d MinGW: Fix sal. (BabylonJS#416) 0a09590ac8 Added positional arguments to CommandLine. (BabylonJS#415) 822be40688 Scanner: Class::Identifier must not start with a digit. (BabylonJS#414) 43bfe29402 Fixed DLL search order hijacking in dlopen. (BabylonJS#413) 0b001f5f36 MSVC: Added ARM64 target. (BabylonJS#412) 056ea3486c Scanner: Cleanup. (BabylonJS#411) 9916e720fc Added scanner. (BabylonJS#410) cd6720ce9a platform.h: detect MSVC ARM64 as 64-bit and raise 32-bit Windows minimum (BabylonJS#409) 5a2b876258 fromString: Parse hex float literals. (BabylonJS#408) a7257985fa Added bx::isEqual for bx::StringView. (BabylonJS#407) c98e98cde1 Fixed amalgamated build. (BabylonJS#406) ed183eb246 Allow files with 10k+ lines to align nicely. (BabylonJS#405) git-subtree-dir: Dependencies/bx git-subtree-split: 080f466590c161664f2a3c5d21e05bd31cc9c8c8
Because I like to make your life more difficult by adding validation tests ;)
bjs max with commit BabylonJS/Babylon.js@07ee198