Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2020-04-23 00:00:00Z and 2020-04-24 00:00:00Z
Avatar
as a result of a discord conversation, it seems that the command the oassed integer is a millisecond value and not a boolean 0/1 one. the passed milliseconds are waited before starting another loop iteration, reducing fanspin of laptops.
Avatar
I couldn't test the usage of ToggleFullscreen in changing screens (I don't have an extra screen) This fixes a bug on macOS 10.13 where the NSView won't realise the window is supposed to not be high-dpi until we create a context. It also allows people to start the game in windowed mode at any resolution. With SDL 2.0.13 we'll be able to get rid of the forced restart when toggling.
Avatar
@noby ^^ you can give this a try
Avatar
ok in a sec
Avatar
@Learath2 it works :D
Avatar
  • Change m_RunServer and m_MapReload from int to bool.
  • Remove unused m_Lastheartbeat.
  • Remove dead net stats reporting code.
  • Add ConchainMapUpdate, which sets m_MapReload, so sv_map isn't polled for changes.
  • Move the time_get() after reloading the map, so that Now >= m_GameStartTime is always true.
  • Dynamically adjust the netserver wait time based on the time until the next tick.
    • For me this reduces idle CPU usage by ~30% (from 0.08 down to 0.04-0.05)
    • May ne...
Exported 6 message(s)