mocha-engine / mocha

Mocha: A work-in-progress 3D game engine
GNU Lesser General Public License v3.0
53 stars 7 forks source link

Allow debug optimization and symbol generation for hotload #27

Closed MuffinTastic closed 1 year ago

MuffinTastic commented 1 year ago

Lets us see the whole call stack and step through game code in Visual Studio

Adds two DLL dependencies:

Not quite sure how we want to make the compilation options available to end users so I didn't go that far. Defaults to debug optimization + symbols for now

devenv_Y3sZqmP3gB

MuffinTastic commented 1 year ago

Looks good, just needs a couple of changes in terms of variable naming (static vars don't need prefixing with s_ and private fields should be lowercase)

Sure thing. On the s_ prefix front I was going along with the C# conventions you linked in the README, but I did forget the camel case part. Anyways, fixing

xezno commented 1 year ago

Ah I wasn't aware that the s_ prefix was being used in there. In that case I should probably change everything to use that.. I will take a look at making sure everything's consistent in a bit.

This looks good to me though, should make debugging stuff a lot easier - thank you!