stellarium icon indicating copy to clipboard operation
stellarium copied to clipboard

Borderless fullscreen windowed mode

Open ner00 opened this issue 2 years ago • 6 comments

Is your feature request related to a problem? Please describe. It's not really addressing any specific problem, I would categorize this instead as a matter of ease of use, especially when switching between Stellarium and other windows on the system.

Describe the solution you'd like I would like to be able to run Stellarium in a borderless fullscreen windowed mode, which visually would be presented as is the default fullscreen mode, covering the task bar, etc., but allowing to seamlessly ALT+TAB between windows without entering and exiting the exclusive fullscreen mode, as is the case with the latter. This would resemble the behavior that happens when using ANGLE, but in this case it would not require ANGLE for that purpose.

Describe alternatives you've considered None, beside using the software in ANGLE mode, or in standard window mode with the downside that it has the title bar and doesn't cover the whole screen resolution (ie: taskbar). You can manipulate the windows with tools such as Borderless Window Utility, to force the window to become borderless, but it still will not be able to cover the taskbar. Regardless, it would be great if it could be done natively

Example of the current window maximized stellarium_kd7obQVjv2

Forced borderless window (still cannot cover taskbar) stellarium_L2R8s8x65J

ner00 avatar May 28 '22 16:05 ner00

Thanks for adding your first issue to Stellarium. If you have questions, please do not hesitate to contact us.

github-actions[bot] avatar May 28 '22 16:05 github-actions[bot]

Hello @ner00! Thank you for suggesting this feature.

github-actions[bot] avatar May 28 '22 16:05 github-actions[bot]

Just an observation: I recently tried Stellarium in a different system and there the standard fullscreen mode worked seamlessly without a black screen transition whenever ALT+TABing out or into Stellarium.

Both systems have the same OS, but different CPU/GPU. The one with the black screen transitions is an i7-8700T w/ UHD Graphics 630, the other is an older i5-3470 w/ HD Graphics 2500.

ner00 avatar Jun 06 '22 09:06 ner00

Hi, how can I turn my stellairum in this mode? (Bordless window) @ner00

parsifal7366 avatar Jul 04 '22 11:07 parsifal7366

@parsifal7366 This issue requests a feature for having borderless window mode, it doesn't exist in Stellarium as of yet.

I also mentioned that seamless desktop/fullscreen depends on hardware/driver: https://github.com/Stellarium/stellarium/issues/2472#issuecomment-1147266316

If your question is aimed at the second screenshot, which I simply used as an example, I used Borderless Window Utility to demonstrate what I was requesting: https://github.com/banzify/Borderless-Window-Utility

ner00 avatar Jul 04 '22 15:07 ner00

@parsifal7366 try F11

axd1967 avatar Jul 10 '22 11:07 axd1967

As far as I can tell, https://github.com/Stellarium/stellarium/pull/2619 doesn't fix this behavior.

Also, Angle mode still doesn't work out of the box, but iirc Angle will be discontinued so I'm not even really too much hung on that detail. Alt-Tab in/out of Stellarium still makes the screen flash as if there is a screen resolution change (although there isn't).

ner00 avatar Sep 04 '22 02:09 ner00

As far as I can tell, #2619 doesn't fix this behavior.

did you add "--single-buffer" to the command line? (Qt6 builds only)

uwes-ufo avatar Sep 04 '22 09:09 uwes-ufo

Hello @ner00! Please check the fresh version (development snapshot) of Stellarium: https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

github-actions[bot] avatar Sep 04 '22 11:09 github-actions[bot]

As far as I can tell, #2619 doesn't fix this behavior.

did you add "--single-buffer" to the command line? (Qt6 builds only)

I tried it, doesn't seem to cover my issue, although I'm unsure if we're talking about the same thing. I see a lot of complaints about screen flickering in some of the issues linked to the PR, my issue is not flickering.

PS: My understanding is that the QT6 build for Windows failed, so I can't test that.

2022-09-04T14:09:26
Operating System: Windows 10 (10.0)
Compiled using MSVC++ 15.9 (Visual Studio 2017)
Qt runtime version: 5.12.6
Qt compilation version: 5.12.6
Addressing mode: 64-bit
Total physical memory: 16165 MB
Available physical memory: 9205 MB
Physical memory in use: 43%
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
Processor speed: 2400 MHz
Processor name: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz
C:\Program Files\Stellarium\stellarium.exe --single-buffer -platform windows:altgr 
 --------------------------------------------------------------------
[ This is Stellarium 0.22.2-3d47d9a [HEAD] - https://stellarium.org/ ]
[ Copyright (C) 2000-2022 Stellarium Developers                      ]
 --------------------------------------------------------------------
Writing log file to: "C:\\Users\\ner0\\AppData\\Roaming\\Stellarium\\log.txt"
File search paths:
  0 .  "C:\\Users\\ner0\\AppData\\Roaming\\Stellarium"
  1 .  "."
Config file is:  "C:\\Users\\ner0\\AppData\\Roaming\\Stellarium\\config.ini"
Default surface format:  QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
Desired surface format:  QSurfaceFormat(version 2.1, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
setDefaultFormat
Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing.
StelGLWidget constructor
StelGraphicsScene constructor
initializeGL
OpenGL supported version:  "4.6.0 - Build 31.0.101.2111"
Current Format:  QSurfaceFormat(version 4.6, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile)
StelMainView::init
Detected: OpenGL "4.6"
Driver version string: "4.6.0 - Build 31.0.101.2111"
GL vendor is "Intel"
GL renderer is "Intel(R) UHD Graphics 630"
GL Shading Language version is "4.60 - Build 31.0.101.2111"
GLSL Version Number detected:  4.6
GLSL version is fine, we should not see a graphics problem.
Sky language is  "pt"
Planetary features language is  "pt"
Application language is  "en_GB"
Scripts language is  "en_GB"
Cache directory is:  "C:\\Users\\ner0\\AppData\\Local\\stellarium\\stellarium\\cache"
Loaded 252 countries
Loaded 193 regions
Loading Solar System data (1: planets and moons) ...
Loading from : "./data/ssystem_major.ini"
SolarSystem has  83 entries.
Loaded 83 Solar System bodies
Loading Solar System data (2: minor bodies)...
Loading from : "C:\\Users\\ner0\\AppData\\Roaming\\Stellarium/data/ssystem_minor.ini"
SolarSystem has  190 entries.
Loaded 107 Solar System bodies
File ssystem_minor.ini is loaded successfully...
Loading nomenclature for Solar system bodies ...
Loaded 15833 / 15835 items of planetary surface nomenclature
WARNING - These planets to assign nomenclature items were not found: "Dactyl"
Loading star data ...
"Loading .\\stars\\default\\stars_0_0v0_8.cat: 0_0v0_8; 4979"
"Loading .\\stars\\default\\stars_1_0v0_8.cat: 1_0v0_8; 21806"
"Loading .\\stars\\default\\stars_2_0v0_8.cat: 2_0v0_8; 150826"
"Loading .\\stars\\default\\stars_3_1v0_4.cat: 3_1v0_4; 425807"
"Loading C:\\Users\\ner0\\AppData\\Roaming\\Stellarium\\stars\\default\\stars_4_1v0_2.cat: 4_1v0_4; 1692779"
"Loading C:\\Users\\ner0\\AppData\\Roaming\\Stellarium\\stars\\default\\stars_5_2v0_1.cat: 5_2v0_1; 7083058"
Finished loading star catalogue data, max_geodesic_level:  5
Loading scientific star names from ".\\stars\\default\\name.fab"
Loaded 4942 / 4942 scientific star names
Loading scientific star extra names from ".\\stars\\default\\extra_name.fab"
Loaded 26200 / 26200 scientific star extra names
Loading variable stars from ".\\stars\\default\\gcvs_hip_part.dat"
Loaded 6862 / 6862 variable stars
Loading double stars from ".\\stars\\default\\wds_hip_part.dat"
Loaded 22992 / 22992 double stars
Loading cross-identification data from ".\\stars\\default\\cross-id.dat"
Loaded 108378 / 108378 cross-identification data records for stars
Loading parallax errors data from ".\\stars\\default\\hip_plx_err.dat"
Loaded 117703 / 117703 parallax error data records for stars
Loading proper motion data from ".\\stars\\default\\hip_pm.dat"
Loaded 117955 / 117955 proper motion data records for stars
navigation/preset_sky_time is a double - treating as jday: "2451514.25001"
Loading DSO data ...
[...] "Stellarium DSO Catalog, version 3.16 (standard edition)"
Loaded 94663 DSO records
Loading DSO outline data ...
Loaded 98 DSO outline records successfully
LandscapeMgr: initialized Cache for 100 MB.
Loading star names from ".\\skycultures\\western\\star_names.fab"
Loaded 1100 / 1100 common star names
Loading DSO name data ...
Loaded 1212 / 1236 DSO name records successfully
WARNING - No position data for 24 objects: "NGC 4173, PGC 2907, PGC 23521, PGC 28759, PGC 29167, PGC 34658, PGC 42102, PGC 44750, PGC 54559, PGC 59117, PGC 59858, PGC 59953, PGC 69018, PGC 69877, PGC 73957, PGC 95597, PGC 100170, PGC 100170, PGC 119230, PGC 1000714, PGC 1694462, PGC 2822840, PGC 2826829, PGC 3098124"
Loaded 88 / 88 constellation records successfully for culture "western"
Loaded 85 / 85 constellation art records successfully for culture "western"
Loaded 88 / 88 constellation names
Loading constellation boundary data ... 
Loaded 782 constellation boundary segments
Loaded 84 / 84 asterism records successfully for culture "western"
Loaded 74 / 74 asterism names
stel.OpenGLArray: Disabling VAO usage because of Intel driver bugs
stel.OpenGLArray: Vertex Array Objects are not supported on your hardware (this is not an error)
Initializing basic GL shaders... 
Creating GUI ...
Loaded plugin "Exoplanets"
[Exoplanets] Version of the format of the catalog: 1
[Exoplanets] loading catalog file: "C:\\Users\\ner0\\AppData\\Roaming\\Stellarium\\modules\\Exoplanets\\exoplanets.json"
Loaded plugin "MeteorShowers"
[MeteorShowersMgr] Loading catalog file: "C:\\Users\\ner0\\AppData\\Roaming\\Stellarium\\modules\\MeteorShowers\\MeteorShowers.json"
[MeteorShowersMgr] Version of the format of the catalog: 2
Loaded plugin "Novae"
[Novae] version of the catalog: 1
[Novae] loading catalog file: "C:\\Users\\ner0\\AppData\\Roaming\\Stellarium\\modules\\Novae\\novae.json"
Loaded plugin "Oculars"
Oculars::validateAndLoadIniFile() ocular.ini exists at:  "C:\\Users\\ner0\\AppData\\Roaming\\Stellarium\\modules\\Oculars\\ocular.ini" . Checking version...
Oculars::validateAndLoadIniFile() found existing ini file version  3.1
Loaded plugin "Satellites"
[Satellites] loading catalogue file: "C:\\Users\\ner0\\AppData\\Roaming\\Stellarium\\modules\\Satellites\\satellites.json"
Satellite has invalid orbit: "CUAVA-1" "49275"
Loaded plugin "SolarSystemEditor"
Using the ssystem_minor.ini file that already exists in the user directory...
Unloaded plugin "SolarSystemEditor"
Unloaded plugin "Satellites"
Unloaded plugin "Oculars"
Unloaded plugin "Novae"
Unloaded plugin "MeteorShowers"
Unloaded plugin "Exoplanets"
Downloaded 0 files (0 kbytes) in a session of 22.912 sec (average of 0 kB/s + 0 files from cache (0 kB)).
LandscapeMgr: Clearing cache of 0 landscapes totalling about  0 MB.

ner00 avatar Sep 04 '22 13:09 ner00

I see you are using the Qt5 based build. Unfortunately, the "--single-buffer" switch has no effect here. Hopefully tomorrow stellarium-1.22.2-0511533-win64.exe based on Qt 6.3.1 will be available for download...

Flicker is perhaps a misleading term in this context. As far as I can see, the graphics processor switches to an exclusive mode that may be intended for computer games. When switching, the backlight of the monitor is turned off for a relatively long time. This looks particularly annoying. I read exactly this behavior in your description. So I still have hope...

uwes-ufo avatar Sep 04 '22 13:09 uwes-ufo

Hello @ner00!

Please check the fresh version (development snapshot) of Stellarium: https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

github-actions[bot] avatar Sep 10 '22 07:09 github-actions[bot]

As far as I can see, the graphics processor switches to an exclusive mode that may be intended for computer games. When switching, the backlight of the monitor is turned off for a relatively long time. This looks particularly annoying. I read exactly this behavior in your description. So I still have hope...

@uwes-ufo You were right, the single buffer switch fixes the video mode "flicker" on my GPU. Thanks!

ner00 avatar Sep 10 '22 14:09 ner00

Hello @ner00!

Please check the latest stable version of Stellarium: https://github.com/Stellarium/stellarium/releases/latest

github-actions[bot] avatar Oct 01 '22 12:10 github-actions[bot]