oakmound / oak

A pure Go game engine
Apache License 2.0
1.55k stars 83 forks source link

can debug console be disabled? (using lots of CPU) #147

Closed glycerine closed 3 years ago

glycerine commented 3 years ago

I was still seeing alot of high CPU use under idle conditions, so I profiled again and I see that even when idle, the debug console is chewing through alot of cpu. Is there any means (or harm) to shut it off?

image

200sc commented 3 years ago

We can certainly add a flag, but I would be really surprised if something waiting on stdin was eating CPU.

200sc commented 3 years ago

The upcoming release should add the configuration to disable the console input.

200sc commented 3 years ago

Flag added, merged and tagged. Feel free to reopen if there's a bug with the implementation.

glycerine commented 3 years ago

Thanks Patrick!