Page 1 of 1

Disabling the C++ console.

PostPosted: Sat Jan 21, 2012 19:15
by Jordach
When I am playing local, the game won't do anything until the console updates, this really annoys me. When I am trying to get mese, the block does not get into my inventory.

So, if we can turn it off, then the game will run faster.

Please make this a feature!

PostPosted: Sat Jan 21, 2012 19:57
by dannydark
Turning the console off doesn't improve game speed at least not anything noticeable on my side I have the console turned off in my builds its just a single line edit in the C++ code.

If you want to turn the console off you just need to uncomment the following line at the top of main.cpp

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
// This would get rid of the console window
// #pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")


So it should look like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
// This would get rid of the console window
#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")


Then build Minetest and play, Hope this helps also let me know if it does speed anything up for you I didn't notice any difference but that could just be on my system.