Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new landmarks renderers #218

Merged
merged 63 commits into from
May 24, 2024
Merged

Add new landmarks renderers #218

merged 63 commits into from
May 24, 2024

Conversation

mi-sts
Copy link
Collaborator

@mi-sts mi-sts commented Apr 5, 2024

2024-04-10.00-17-56.mp4

@mi-sts mi-sts requested a review from DmiitriyJarosh April 9, 2024 21:26
@mi-sts mi-sts force-pushed the new-landmarks-renderers branch from 0326f48 to b3cac8b Compare May 1, 2024 12:20
src/main/kotlin/solve/rendering/canvas/OpenGLCanvas.kt Outdated Show resolved Hide resolved
src/main/kotlin/solve/rendering/canvas/SceneCanvas.kt Outdated Show resolved Hide resolved
src/main/kotlin/solve/rendering/canvas/SceneCanvas.kt Outdated Show resolved Hide resolved
}

fun initializeFramesRenderer() {
CoroutineScope(Dispatchers.Default).launch {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it be canceled?

Copy link
Collaborator Author

@mi-sts mi-sts May 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a problem with rendering process. The FramesRenderer needs to initialize a textures array on a GPU side before it can render frames, and it requires some time. The problem is that if we try to execute PlanesLayerRenderer (which also works with textures) at that time, the textures array of FramesRenderer doesn't initialize correctly, and we get "black" frames. I spent a lot of time on this bug, but still haven't figured it out.

fun initializeFramesRenderer() {
CoroutineScope(Dispatchers.Default).launch {
isFramesRendererInitializing = true
delay(FrameRendererInitializationDelayMillis)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is the real init process?

@mi-sts mi-sts force-pushed the new-landmarks-renderers branch from 59ad3c2 to d997fe9 Compare May 24, 2024 17:55
@mi-sts mi-sts merged commit d7fffcb into master May 24, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants