Message: Re: ogl refresh from threads Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: ogl refresh from threads 

Forum: Multithreading
Re: None ogl refresh from threads
Re: None Re: ogl refresh from threads (John Allison)
Re: None Re: ogl refresh from threads
Re: None Re: ogl refresh from threads (John Allison)
Date: 05 Oct, 2017
From: <ungaro@jlab.org>

Ok I've done as suggested:

commandsChain:

 /vis/disable
 /run/beamOn
 /vis/enable
 /vis/viewer/flush
 /vis/reviewKeptEvents (<< this was also needed)

Getting closer but not there yet. The screen is indeed updated from the main thread (yay!). However:

1. I can only do it once. Subsequent commandsChain seems not to work anymore

2. This only works with the very last event, i.e. beamOn 100 does not keep all 100 events.

Googling around it seems that that GL context is strictly thread local, but it could be "released" and given to another thread. For example:

https://stackoverflow.com/questions/21048927/initializing-opengl-context-in-another-thread-than-the-rendering

Now, I realize this is a very particular problem that may not be of interest to the community. And it's threads, so not trivial. And it's OpenGL so its not trivial. So I understand if it cannot be addressed easily, and I could adopt plan B of using RunManager instead of MTRunManager.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: ogl refresh from threads   (John Allison - 06 Oct, 2017)
(_ None: Re: ogl refresh from threads   (ungaro@jlab.org - 06 Oct, 2017)
 Add Message Add Message
to: "Re: ogl refresh from threads"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews