Looks great so far!
Is your app going to work on both Windows and the 360
Are you planning to share the source code anytime soon
-Mike
This is so cool! Sign me up for code reviews ![]()
But this raised a question in my mind; can we use .NET assemblies coded in Managed C++ with XNA (on both Windows and Xbox360) If so, perhaps you could borrow stuff from Quake II.Net. I guess its just a matter of trying.
Cool project i actually wanted to do this, but due to my lack of knowledge of C# i decided just to learn it first. Here is a few things i read about to help you out XD :
i read somewhere that 'foreach' statements take alot of frames right out of your fps because of the enumerator thing if you have any you might wanna just turn them into normal loops.
also the person who made rocket commander or somthing (for xna) said that using multithreading also greatly increased the fps
Well thats all i know, Good luck with your project
Multithreading is not a silver bullet for improved performance. It must be done right. As is with all things I guess :) Especially, look out for threads accessing the same resources. If done wrong, it will truly hurt perf.
Another thing to watch out for in .NET is boxing. This is what the CLR uses when you cast value types to objects and back into value types. Like this:
public void Boxit()
{
int x = 10;
object o = (object)x; //Boxing occurs
int y = (int)o; //Un-boxing occurs
}
Boxing effectively creates a new object to hold the value of x. Read more on the subject here. In the "old" .NET 1.0/1.1 collections this was a problem. With generics in .NET 2.0 we got rid of the problem for collections and the like. More on that here.
That's awesome! Make sure to make your code available eventually. I'd really like to look through it.
Keep it up!
I'd love to see the code - I've created a BSP loader for HalfLife2 maps that I'm moving over to use the Content Pipeline, it'd be really neat to package this loader in there as well, so you add content to your game, select either the 'Quake2 BSP Importer' or 'HalfLife2 BSP Importer' and the appropriate processor and have a renderable map.
The screen shots look great!