Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Glossary:Borderless fullscreen windowed"

From PCGamingWiki, the wiki about fixing PC games
Tag: New redirect
 
(184 intermediate revisions by 34 users not shown)
Line 1: Line 1:
{{Video settings sidebar}}
+
#REDIRECT [[Glossary:Windowed#Borderless fullscreen windowed]]
{{feature|borderless fullscreen windowed}}
 
 
 
'''Key points'''
 
{{ii}} A forced [[Glossary:Windowed|Windowed]] mode will need to be set first for games which do not natively provide a borderless mode.
 
{{++}} Fast, seamless task switching with no risk of crashes or freezes with no performance costs.
 
{{++}} Eliminates screen tearing.
 
{{--}} AMD/ATI cards only support Crossfire in this mode for games using a Mantle renderer.<ref>[https://community.amd.com/thread/180730 Why does CrossFire still not work in windowed mode | Community]</ref>
 
{{--}} Most games will have problems with edge scrolling on [[Glossary:Multi-monitor|multi-monitor]] setups. See [[Glossary:Windowed#Mouse_locking|Mouse locking]].
 
 
 
==Windows==
 
===[https://github.com/Codeusa/Borderless-Gaming/releases Borderless Gaming]===
 
{{ii}} Open source and simple to use application.
 
{{++}} Dynamic, adapts easily when switching to a different resolution on another monitor.
 
{{++}} Allows games to lock the mouse to the current window.
 
 
 
{{Fixbox|1=
 
{{Fixbox/fix|Instructions}}
 
# Run the desired game in a '''Windowed''' mode, then {{key|Alt|Tab}} to the Desktop and start Borderless Gaming.
 
# Select the game's executable from under the '''Applications''' field, then push the large '''Right Arrow''' icon located at the center.
 
}}
 
<!-- ===Windowed Borderless Gaming===-->
 
 
 
===[http://blog.metaclassofnil.com/?page_id=582 GeDoSaTo]===
 
{{ii}} [[#GeDoSaTo|GeDoSaTo]] and [[#Borderless Gaming|Borderless Gaming]] can be used together.
 
{{++}} Allows games to be downsampled at any resolution.
 
{{--}} Unintuitive interface.
 
 
 
{{Fixbox|1=
 
{{Fixbox/fix|Instructions}}
 
# Open '''GeDoSaTo.ini'''.
 
# Find the following line, and set it to this value.
 
<pre>
 
forceBorderlessFullscreen true
 
</pre>
 
}}
 
<!-- Could be useful -->
 
<!-- http://www.nexusmods.com/skyrim/mods/7347/? -->
 
<!--===ShiftWindow===-->
 
<!-- To add back after the cleanup -->
 
<!-- http://westechsolutions.net/sites/WindowedBorderlessGaming/ -->
 
<!-- Possibly not much else, having to deal with incompatibilities is a bit more difficult -->
 
<!-- WBG and ShiftWindow, although development for other borderless apps has ceased and I'd rather not include outdated software -->
 
<!-- The rest of the alternatives pretty much behaved terribly, I'll add these tomorrow after a tiny break -->
 
<!-- Probably Window Manager and Fullscreenizer, although I'll have to organize them a bit better -->
 
<!-- The main idea was to test all these again properly, I might as well add the ones which did work back, I haven't had too much luck with Window Manager but I don't care too badly right now. -->
 
 
 
==AutoHotkey==
 
{{ii}} The following scripts require [http://ahkscript.org AutoHotkey].
 
{{--}} Games utilizing [[PunkBuster]] as an anti-cheat measure may mistakenly treat AutoHotkey as a cheat.
 
 
 
===Saving and running a script===
 
{{Fixbox|1=
 
{{Fixbox/fix|Make and run script}}
 
# In Windows Explorer, File -> New -> AutoHotkey Script
 
# Open the newly created file in a text editing program
 
# Append the code to the end of the file
 
# Save the file and run it.
 
}}
 
 
 
===Scripts compilation===
 
* [http://gaming.stackexchange.com/questions/17306/how-to-force-maximized-fullscreen-mode-in-any-game/17307#17307 Stack Exchange]
 
* [http://skyrim.nexusmods.com/downloads/file.php?id=24 Skyrim Nexus]
 
 
 
===Borderless scripts===
 
====Fullscreen script====
 
{{ii}} This script will full screen the currently active window onto your primary monitor with {{key|F12}}.
 
{{Fixbox|1=
 
{{Fixbox/fix|Fullscreen script}}
 
<pre>
 
F12::
 
WinGet, WindowID, ID, A
 
WinSet, Style, -0xC40000, ahk_id %WindowID%
 
WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight
 
return
 
</pre>
 
}}
 
 
 
====Fullscreen toggle script====
 
{{ii}} This script will toggle between fullscreen and windowed modes when pressing {{key|F12}} as well as hiding the taskbar on the fullscreen mode.
 
{{Fixbox|1=
 
{{Fixbox/fix|Fullscreen script}}
 
<pre>
 
F12::
 
WinGet, TempWindowID, ID, A
 
If (WindowID != TempWindowID)
 
{
 
  WindowID:=TempWindowID
 
  WindowState:=0
 
}
 
If (WindowState != 1)
 
{
 
  WinGetPos, WinPosX, WinPosY, WindowWidth, WindowHeight, ahk_id %WindowID%
 
  WinSet, Style, -0xC40000, ahk_id %WindowID%
 
  WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight
 
  ;Hide Windows Task Bar and Start Button. (Remove the following two lines if you don't want that behaviour)
 
  WinHide ahk_class Shell_TrayWnd
 
  WinHide Start ahk_class Button
 
}
 
Else
 
{
 
  WinSet, Style, +0xC40000, ahk_id %WindowID%
 
  WinMove, ahk_id %WindowID%, , WinPosX, WinPosY, WindowWidth, WindowHeight
 
  ;Show the task bar again
 
  WinShow ahk_class Shell_TrayWnd
 
  WinShow Start ahk_class Button
 
}
 
WindowState:=!WindowState
 
return
 
</pre>
 
}}
 
 
 
====Multiple monitors script====
 
{{ii}} This is a snippet from the [[#Fullscreen toggle script|Fullscreen toggle script]].
 
{{Fixbox|1=
 
{{Fixbox/fix|Fullscreen script}}
 
* The values '''0, 0,''' represent the coordinates of the upper left corner of the window.
 
<pre>WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight</pre>
 
 
 
* For multiple resolutions the values have to be the sum of the monitors total width, for <code>3840x1080</code> them being.
 
<pre>WinMove, ahk_id %WindowID%, , 1920, 0, 1920, 1080</pre>
 
 
 
'''Notes'''
 
{{ii}} Use '''1920, 0, 1920, 1080''' (right) or '''0, 1920, 1920, 1080''' (left) in order to change which side of the screen is filled.
 
}}
 
 
 
==Linux==
 
{{ii}} Most Linux windows managers allow fullscreen applications to natively run under a borderless mode by default.
 
 
 
Another tip that exclusively works on Linux is running your game in a separate X server. This allows you to switch between your game and your desktop using {{key|Ctrl|Alt|F7}} and {{key|Ctrl|Alt|F8}} and it increases performance and stability. To do this, edit the launch options for your game on Steam as follows:
 
 
 
{{Fixbox|1=
 
{{Fixbox/fix|Run Game in New X Server}}
 
<pre>
 
xinit %command% :1
 
</pre>
 
 
 
'''Notes'''
 
{{ii}} Manually launch a Non-Steam game by replacing %command% with the path to the game executable.
 
}}
 
 
 
===[http://i3wm.org/ Improved tiling windows manager]===
 
{{Fixbox|1=
 
{{Fixbox/fix|Instructions}}
 
# Start the game in a windowed mode.
 
# Move it to a new virtual desktop by using {{key|shift|windows|Number}}.
 
# Switch to the virtual terminal with {{key|windows|Number}} then go into fullscreen mode by pushing {{key|windows|F}}.
 
}}
 
 
 
==Engines==
 
===[[Engine:Source|Source]]===
 
{{ii}}Games built on the Source engine can be run in a borderless window by enabling windowed mode and adding the [[Glossary:Command line arguments|launch argument]] <code>-windowed -noborder</code> to the main executable.<ref>[https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters Command line options - Valve Developer Community]</ref>
 
===[[Engine:Unity|Unity]]===
 
{{ii}}Games built on the Unity engine can be run in a borderless window by enabling windowed mode and adding the [[Glossary:Command line arguments|launch argument]] <code>-popupwindow</code> to the main executable.<ref>[http://docs.unity3d.com/Manual/CommandLineArguments.html Unity - Manual: Command line arguments]</ref>
 
 
 
==Windows troubleshooting==
 
===Game crashes on startup===
 
{{ii}} Certain borderless applications have to be started before the game itself and not while the game is running.
 
 
 
===Window constantly resizes itself===
 
{{ii}} After applying the borderless mode simply restart the game itself, while keeping the borderless application open.
 
 
 
{{References}}
 

Latest revision as of 18:19, 3 October 2022