Change a few things to const and pass-by-reference to avoid copying whole strings and vectors.
A lot more profiling.
Made VertexArray non-virtual.
Cached it's creation in GuiTexturedQuad to avoid repeatedly instancing it.
A lot more profiling.
Moved the SectorCache out of SectorView so it can be used elsewhere like LuaStarSystem.
Also drag in some improvements to the Renderer matrix push/pop and mode setting.
Use the automatic push/pop mechanism.
Improve the bug fix for SectorView.
Reset the viewport when the screen is switched too rather than every time it calls Draw3D.