1
Vote

Performance issue on Windows Phone

description

Dear you,

thanks for your time for doing this great library.
I experienced a problem with Windows Phone (not with Windows 8, it runs great), and find the maxBatchVerices equals to 25000 is too high for Windows Phone, the GPU is over used with this value. You should add a #ifdef to decrease the value for WP, like 2500, it runs great, or even less (personnaly, it's ok with 500 for me because I don't draw a lot of vertices)

Thank for your time
Stephane

comments

poppyto wrote Sep 24, 2013 at 1:55 PM

Sorry I was wrong, the problem is not the 25000 vertices but "D3D11_MAP_WRITE_DISCARD" in DrawBatch. Each time it write the vertices, each time it asks for "erasing" the whole buffer of 25000 vertices : it is very long. You have to use D3D11_MAP_WRITE_NO_OVERWRITE in order to filling the buffer and D3D11_MAP_WRITE_DISCARD when the buffer is full or too small.

Check the remark here :
http://msdn.microsoft.com/en-us/library/windows/desktop/ff476181(v=vs.85).aspx