Map/Unmap constant buffers instead of using UpdateSubResource
Map/Unmap constant buffers instead of using UpdateSubResource

(XB1) Drops GPU Busy % on spiral from 65% to 20%

(PC) Drops bgfx::d3d11::RendererContextD3D11::commitShaderConstants
CPU usage by 95% (11.21%->0.66%)

(PC) Overall decreases bgfx::d3d11::RenderContextD3D11::submit CPU
usage by another 34% (27.18%->17.90%)

bkaradzic/bgfx,aonorin/bgfx,mcanthony/bgfx,Vertexwahn/bgfx,v3n/bgfx,janstk/bgfx,LWJGL-CI/bgfx,ocornut/bgfx,LSBOSS/bgfx,mcanthony/bgfx,LWJGL-CI/bgfx,kondrak/bgfx,mmicko/bgfx,attilaz/bgfx,sergeScherbakov/bgfx,elmindreda/bgfx,jpcy/bgfx,Synxis/bgfx,Extrawurst/bgfx,fluffyfreak/bgfx,kondrak/bgfx,mcanthony/bgfx,marco-we/bgfx,LWJGL-CI/bgfx,mendsley/bgfx,fluffyfreak/bgfx,Vertexwahn/bgfx,aonorin/bgfx,aonorin/bgfx,sergeScherbakov/bgfx,janstk/bgfx,cuavas/bgfx,andr3wmac/bgfx,marco-we/bgfx,v3n/bgfx,MikePopoloski/bgfx,cyndis/bgfx,cyndis/bgfx,cyndis/bgfx,jpcy/bgfx,Extrawurst/bgfx,jdryg/bgfx,mmicko/bgfx,darkimage/bgfx,Extrawurst/bgfx,ocornut/bgfx,andr3wmac/bgfx,ktotheoz/bgfx,septag/bgfx,jdryg/bgfx,cuavas/bgfx,LSBOSS/bgfx,BlueCrystalLabs/bgfx,septag/bgfx,mendsley/bgfx,jpcy/bgfx,jpcy/bgfx,MikePopoloski/bgfx,kondrak/bgfx,0-wiz-0/bgfx,Synxis/bgfx,BlueCrystalLabs/bgfx,elmindreda/bgfx,fluffyfreak/bgfx,marco-we/bgfx,emoon/bgfx,jdryg/bgfx,mendsley/bgfx,emoon/bgfx,Vertexwahn/bgfx,jdryg/bgfx,0-wiz-0/bgfx,ktotheoz/bgfx,0-wiz-0/bgfx,emoon/bgfx,andr3wmac/bgfx,MikePopoloski/bgfx,Synxis/bgfx,darkimage/bgfx,cuavas/bgfx,janstk/bgfx,bkaradzic/bgfx,fluffyfreak/bgfx,ktotheoz/bgfx,attilaz/bgfx,BlueCrystalLabs/bgfx,LWJGL-CI/bgfx,bkaradzic/bgfx,LSBOSS/bgfx,darkimage/bgfx,mmicko/bgfx,septag/bgfx,elmindreda/bgfx,attilaz/bgfx,ocornut/bgfx,sergeScherbakov/bgfx,v3n/bgfx,bkaradzic/bgfx