ThuCommix / Sharpex2D

2D GameEngine for Indie games with alot of features
http://www.sharpex2d.de
MIT License
47 stars 9 forks source link

Performance: In DirectXRenderer.Begin(), make call to DirectXHelper.RenderTarget.Clear() optional #7

Closed dlatikay closed 10 years ago

dlatikay commented 10 years ago

Rationale: In swap chain implementations which use static background blitting, clearing the render target prior to each frame will be obsolete so omitting it might result in a minor performance gain.

ThuCommix commented 10 years ago

Thats true, but most people prefer to use a static bg color. If you have any idea to resolve this, please respond.

ThuCommix commented 10 years ago

https://github.com/ThuCommix/Sharpex2D/commit/615376ad67b98e846d56d5a92b2db9a30b17ad2f