Problem with Window Mode on Mac

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Baldrik3505

Corporal
14 Badges
Oct 18, 2021
41
3
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
Hi,

If I switch to using Window Mode (e.g. not Full Screen or Borderless), then it doesn't seem to take the Main Mac Menu Bar Hieght into account so the bottom in the window is not visible! This is a real pain, has anyone seen this and got a workaround?

Thanks
Dave
 

Peko?

Colonel
65 Badges
Jun 27, 2016
1.014
547
  • Stellaris
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Distant Stars Pre-Order
  • Stellaris: Apocalypse
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Prison Architect
  • Surviving Mars
  • Tyranny - Bastards Wound
  • Cities: Skylines - Green Cities
  • Stellaris: Humanoids Species Pack
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Stellaris: Megacorp
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • BATTLETECH: Flashpoint
  • Europa Universalis IV: El Dorado
  • Stellaris: Nemesis
  • Stellaris: Federations
  • Age of Wonders: Planetfall - Revelations
  • BATTLETECH: Heavy Metal
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall Season pass
  • Europa Universalis IV
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Deluxe edition
  • Cities: Skylines
  • Age of Wonders: Planetfall
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • BATTLETECH: Season pass
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Tyranny - Tales from the Tiers
Set the resolution to something with a smaller height.
 

Baldrik3505

Corporal
14 Badges
Oct 18, 2021
41
3
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
I tried that, but it shirks down the whole window to a much smaller size. It seems that the game can't handle scaling other than what the Screen Resolutions, so it make a window fit with the menu bar won't work. What does work if you have 2 monitors is to switch the Menu Bar from the screen you want to play on. At least now I can access other apps while playing.

All the Best
Dave
 

Baldrik3505

Corporal
14 Badges
Oct 18, 2021
41
3
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
I spoke too soon, that doesn't work either because the don't take into account the Window Title Bar.

This totally sucks because I can't access other Apps while playing, unless there a key combo to do it?
 

Peko?

Colonel
65 Badges
Jun 27, 2016
1.014
547
  • Stellaris
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Distant Stars Pre-Order
  • Stellaris: Apocalypse
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Prison Architect
  • Surviving Mars
  • Tyranny - Bastards Wound
  • Cities: Skylines - Green Cities
  • Stellaris: Humanoids Species Pack
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Stellaris: Megacorp
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • BATTLETECH: Flashpoint
  • Europa Universalis IV: El Dorado
  • Stellaris: Nemesis
  • Stellaris: Federations
  • Age of Wonders: Planetfall - Revelations
  • BATTLETECH: Heavy Metal
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall Season pass
  • Europa Universalis IV
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Deluxe edition
  • Cities: Skylines
  • Age of Wonders: Planetfall
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • BATTLETECH: Season pass
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Tyranny - Tales from the Tiers
⌘ + ⇥
Can be supplemented with shift to move the other way
 

Baldrik3505

Corporal
14 Badges
Oct 18, 2021
41
3
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
This works (I thought I'd tried it, but it seems not), doesn't do much good though because even with Stellaris paused its still eating most of the CPU time? I guess it doesn't handle the MacOS Activate/Deactivate events very well if at all...
 

Peko?

Colonel
65 Badges
Jun 27, 2016
1.014
547
  • Stellaris
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Distant Stars Pre-Order
  • Stellaris: Apocalypse
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Prison Architect
  • Surviving Mars
  • Tyranny - Bastards Wound
  • Cities: Skylines - Green Cities
  • Stellaris: Humanoids Species Pack
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Stellaris: Megacorp
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • BATTLETECH: Flashpoint
  • Europa Universalis IV: El Dorado
  • Stellaris: Nemesis
  • Stellaris: Federations
  • Age of Wonders: Planetfall - Revelations
  • BATTLETECH: Heavy Metal
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall Season pass
  • Europa Universalis IV
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Deluxe edition
  • Cities: Skylines
  • Age of Wonders: Planetfall
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • BATTLETECH: Season pass
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Tyranny - Tales from the Tiers
AFAIK there's no way to forcibly pause an application on OS X. Even if there was I'd bet that it would compromise the stability of said application.
It's slightly off topic though as changing windows doesn't cause out of focus applications to pause unless they've been specifically coded to do so.
 

Baldrik3505

Corporal
14 Badges
Oct 18, 2021
41
3
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
There are two methods that get called Deactivate and Activate, you need to take appropriate action in those methods in order to stop it eating CPU. It may be that you can't do it easily in Stellaris but basically you need to stop its main event loop in Deactivate, and start it again on Activate. As I say it's easy in a proper Mac App, but might not be easy when taking into account the Stellaris engine. It shouldn't compromise the stability as long as you implement what is needed correctly, the OS will call you - you need to do the right thing in the right method.
 
Last edited:

Baldrik3505

Corporal
14 Badges
Oct 18, 2021
41
3
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
I ran the Activity Monitor, it looks like its using Unix Threads deep down, I would there is a Main Timer that is set to something in the milliseconds range, each times it fires the main event loop gets called, it's probably like if (Paused == TRUE) return. If so then all that needs to be done is to lover the time-out value to something sensible for a background app (4 times a second maybe) in the Deactivate method and set it back to the real number in Activate.