Skip to main content
added 73 characters in body
Source Link
Lasse
  • 3.2k
  • 2
  • 22
  • 31
  1. I do not understand the problem. If you do not call the join()join(), they won't be waited for. You should call the join() only right before you absolutely need the data they produce. The other threads wont be stopped if you call join() on one of them. See the join() reference: http://www.cplusplus.com/reference/thread/thread/join/
  2. VAOs are not shared in between contexts. You need to pass the VBOs to the drawing thread where you will create the VAOs and bind the VBOs in them.
  1. I do not understand the problem. If you do not call the join(), they won't be waited for. You should call the join() only right before you absolutely need the data they produce. See the join() reference: http://www.cplusplus.com/reference/thread/thread/join/
  2. VAOs are not shared in between contexts. You need to pass the VBOs to the drawing thread where you will create the VAOs and bind the VBOs in them.
  1. I do not understand the problem. If you do not call the join(), they won't be waited for. You should call the join() only right before you absolutely need the data they produce. The other threads wont be stopped if you call join() on one of them. See the join() reference: http://www.cplusplus.com/reference/thread/thread/join/
  2. VAOs are not shared in between contexts. You need to pass the VBOs to the drawing thread where you will create the VAOs and bind the VBOs in them.
deleted 23 characters in body
Source Link
Lasse
  • 3.2k
  • 2
  • 22
  • 31
  1. You need currently active GL context in the thread you are using GL with. You can't use them at the same time for each thread. Only one context can be current at one time. All threads in this case need to wait for each other. This didn't really answer your question I do not understand the problem. If you do not call the join(), they won't be waited for. You should call the join() only right before you absolutely need the data they produce. See the join() reference: http://www.cplusplus.com/reference/thread/thread/join/
  2. VAOs are not shared in between contexts. You need to pass the VBOs to the drawing thread where you will create the VAOs and bind the VBOs in them.
  1. You need currently active GL context in the thread you are using GL with. You can't use them at the same time for each thread. Only one context can be current at one time. All threads in this case need to wait for each other. This didn't really answer your question.
  2. VAOs are not shared in between contexts. You need to pass the VBOs to the drawing thread where you will create the VAOs and bind the VBOs in them.
  1. I do not understand the problem. If you do not call the join(), they won't be waited for. You should call the join() only right before you absolutely need the data they produce. See the join() reference: http://www.cplusplus.com/reference/thread/thread/join/
  2. VAOs are not shared in between contexts. You need to pass the VBOs to the drawing thread where you will create the VAOs and bind the VBOs in them.
added 58 characters in body
Source Link
Lasse
  • 3.2k
  • 2
  • 22
  • 31
  1. You need currently active GL context in the thread you are using GL with. You can't use them at the same time for each thread. Only one context can be current at one time. All threads in this case need to wait for each otherYou need currently active GL context in the thread you are using GL with. You can't use them at the same time for each thread. Only one context can be current at one time. All threads in this case need to wait for each other. This didn't really answer your question.
  2. VAOs are not shared in between contexts. You need to pass the VBOs to the drawing thread where you will create the VAOs and bind the VBOs in them.
  1. You need currently active GL context in the thread you are using GL with. You can't use them at the same time for each thread. Only one context can be current at one time. All threads in this case need to wait for each other.
  2. VAOs are not shared in between contexts. You need to pass the VBOs to the drawing thread where you will create the VAOs and bind the VBOs in them.
  1. You need currently active GL context in the thread you are using GL with. You can't use them at the same time for each thread. Only one context can be current at one time. All threads in this case need to wait for each other. This didn't really answer your question.
  2. VAOs are not shared in between contexts. You need to pass the VBOs to the drawing thread where you will create the VAOs and bind the VBOs in them.
deleted 5 characters in body
Source Link
Lasse
  • 3.2k
  • 2
  • 22
  • 31
Loading
Source Link
Lasse
  • 3.2k
  • 2
  • 22
  • 31
Loading