Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
FR: Define a conditional compilation symbol: #monogame #393
So basically, I've ported my 3d block engine (http://www.voxeliq.org/) to monogame and with a few glitches, it's all great. The problem is that as monogame isn't 100% compatible with XNA 4.0 yet, I hit spots where i need that #monogame symbol. Let me explain in details;
As I'm working on a block engine with millions of blocks in memory, I'm using other threads to generate, lighten and build vertices.
So within the last step my code creates new VertexBuffer's in those off-threads which at the moment seems MonoGame/develop3d branch doesn't support and throws;
throw new NotImplementedException("Threaded creation of GPU resources is not currently supported on this platform");
So a solution I came with is adding #monogame symbol to my block engine's monogame version project and using as;
So wouldn't it be better if monogame framework project's define #monogame symbol on their own so for project that targets XNA and monogame together can differentiate the underlying framework?
An assembly project cannot define a conditional that will affect
And yes, creation of GPU resources on secondary threads is a
On 23 March 2012 21:37, raistlinthewiz <
I see now from your pull request that you are building for Windows. As
On 23 March 2012 22:23, raistlinthewiz <
I'm pretty sure that precompiler tags are only for that project. So, a
On Fri, Mar 23, 2012 at 6:37 AM, raistlinthewiz <