-
Notifications
You must be signed in to change notification settings - Fork 97
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
enable EGL backend #42
Conversation
glInitBindlessTextureNV() returns False when running test_egl_meshrenderer_phong.py, i.e. the egl context in my environment. Also I get a memory leak that quickly kills the ae_train script at line 126 |
Could you check this. This is the only problem for me to get egl work. |
thanks! After changing egl.py, the egl rendering was working with a connected display. However, headless rendering still gave eglinitialize errors . |
@MartinSmeyer Now I can train with the egl backend. What do you mean by memory leak? GPU memory leak or RAM memory leak? |
The RAM was filling up. The problem was the python2 -> python3 port. I was running the code in python2 in debug mode, i.e.
You changed all xrange to range which in python2 does an explicit memory allocation.
In debug mode only, num_iter was set to
Setting num_iter in debug mode to a lower number solved the problem. |
Concerning the PyOpenGL hacks, I had to do this to make headless rendering work in osl42 but not in osl15. Thanks again for the pointer. |
Sorry, I didn't test python2. Glad that you have catched the problem. BTW, what are "osl42" and "osl15"? |
OpenSuse42 and the successor OpenSuse15 are both linux distributions. There might have been some updates in the libraries. |
So the hack of |
Yes, it seems like. Looking at the referenced
It still references GL. Might be that OpenGL.so is loaded elsewhere? |
hmm, if this is an issue for both Ubuntu 14.04 and 16.04. I will make EGL a prominent option but not default. We can not assume every user to be allowed / know how to change PyOpenGL. Hope you are fine with that. A simple
will switch to egl mode. |
reference: https://github.com/mmatl/pyrender/blob/master/pyrender/platforms.py