Tag Info

Hot answers tagged

4

Texture2D objects are allocated on system memory, but the actual textures loaded from image files are, on the other hand, loaded on the graphics card's memory. You are not completely off with your assumption, but here is how it goes when you want to load and render a simple texture: You load the texture into the graphics card's memory. You bind the ...


3

Game assets like sounds are usually best managed if preloaded in advance. You don't want the user to experience a delay in the sound effects every time a sound has to be loaded. You should implement a ResourceCache helper that manages game resources for you. Then things like sounds could be preloaded at each level start and unloaded when the level ends. ...


1

You want a git post-commit or post-push hook to invoke your build chain automatically every-time those things happen. http://git-scm.com/book/en/Customizing-Git-Git-Hooks (Or you could use Jenkins? Same thing, but more complex. Though you might like those features.) Simply google "automated clickonce" to see that click once is not intended to be ...


1

Yeah, this is how spritebatch is meant to be used. It takes a view matrix in the begin parameter and uses that throughout the begin/end pair. You could argue that spritebatch would be more flexible with matrices if you could pass a view matrix in for each .draw call, but evidently the XNA team decided against this for one reason or another. To answer your ...



Only top voted, non community-wiki answers of a minimum length are eligible