Skip to content

Resolve "(viz): deadlock in multiple 3D scenes rendering with Nvidia prime"

Description

On laptops using NVidia prime, we fail to render multiple scenes because the swap buffer function blocks after few calls. A workaround was found by letting Ogre manage the swap of the buffers. However, since this does not work with Intel GPUs, we only use this strategy when we detect NVidia prime.

Closes #889 (closed)

How to test it?

  1. First reproduce the problem:
  • Run Tuto04SignalSlot with NVidia prime, with Intel GPUs and with NVidia GPUs without Prime (on workstations for instance).
  • Move your mouse over the three 3D windows
  • Observe the application is frozen in the first case and not in the other
  1. Observe the crash is fixed
  • Check out this merge request
  • Run Tuto04SignalSlot with NVidia prime, with Intel GPUs and with NVidia GPUs without Prime (on workstations for instance).
  • Move your mouse over the three 3D windows
  • Observe the application is never frozen in all cases
  • You can now load a mesh and play with the tutorial

Additional tests/tasks to run

You may test on a bigger application from a private repository.

Edited by Flavien BRIDAULT

Merge request reports