Hi,
I'd like to move some files from src to lib/ivis-OpenGL since they deal with rendering rather than game logic : terrain.h/cpp, texture.h/cpp (I'd like to rename these decals.h/cpp since they only set terrain decal) and display3d.cpp/h (which parse the whole scene tree).
Is it ok for anyone ?
BTW it would also make sense to have a lib/ai directory too for ai, astar.
Moving files ?
- moltengear
- Trained
- Posts: 170
- Joined: 22 Jul 2017, 15:05
Re: Moving files ?
In general, a separate graphical framework will contribute to the best development of the entire project.
In addition, functions for converting png files are scattered throughout the project.
It is also possible to create an assembler of all opengl commands. Thus, OpenGL will work in the second thread. The game itself and multiplayer will not depend on the execution time of the opengl functions
It will also be convenient to do support for Metal api.
In addition, functions for converting png files are scattered throughout the project.
It is also possible to create an assembler of all opengl commands. Thus, OpenGL will work in the second thread. The game itself and multiplayer will not depend on the execution time of the opengl functions
It will also be convenient to do support for Metal api.
Re: Moving files ?
Fine by me.Vincent wrote:Hi,
I'd like to move some files from src to lib/ivis-OpenGL since they deal with rendering rather than game logic : terrain.h/cpp, texture.h/cpp (I'd like to rename these decals.h/cpp since they only set terrain decal) and display3d.cpp/h (which parse the whole scene tree).
Is it ok for anyone ?
Re: Moving files ?
That would require a radical redesign first. Warzone is still mostly an 'immediate mode renderer' at the moment, which is bad for a number of reasons.moltengear wrote:It is also possible to create an assembler of all opengl commands. Thus, OpenGL will work in the second thread.
Also, GL drivers do their own batching of work behind the scenes, so the gain from doing what you describe would be quite small, if any, I think.