Note that in this article, I shall not be assessing the relative performance of SlimDX and SharpDX against each other, or against the native C++ DirectX API. In all other cases, C++ is the preferred choice. Obviously, if you’re a hobbyist coder, there is no need to get embroiled in C++, and if you’re a commercial outfit, using C# to prototype will get you up and running with less boilerplate code and memory management woes than C++. your environment prevents you from using C++.you want to quickly prototype a game and are using C# to save time.you are a hobbyist developer writing code for fun, you know C#, and feel that C++ is too complicated (which is perfectly reasonable).There are, however, some compelling reasons to use C#, and if you are in one of the categories below, read on: Almost all commercial game development is done in C++, using C# decreases portability between platforms and incurs a small (perhaps 1-2%) performance hit due to the extra abstraction layer you will be using over the standard C++ DirectX API. Why choose C# for games and graphical applications?Īctually, as a general rule, I strongly advise all users to write their games in C++ where possible. Here I will look at the two frameworks most currently in use at the time of writing: SlimDX and SharpDX. Which DirectX wrapper API should I use?Īs with most such things, all choices have their pros and cons. A question I often see asked by beginning game programmers on the internet is:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |