From b5131e532018debc8db6f56c237fbb30167b590a Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Tue, 25 Aug 2020 00:09:56 +0200 Subject: [PATCH 01/11] Performance improvements CacheSizeMegs=256 -> More RAM available. This in addition speeds up loading times. Channels=64 -> Channels values are to determine amount of sound clips loaded and played at same time UseEAX=True -> EAX will add effects such as pitch, some cheap echo and enhance volume control ConfiguredInternetSpeed=20000 -> Increase default bandwith --- System/Default.ini | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/System/Default.ini b/System/Default.ini index eca770bf..bf81206f 100644 --- a/System/Default.ini +++ b/System/Default.ini @@ -89,7 +89,7 @@ Suppress=WindowedMode EnableDevTools=False InitialMenuClass=SwatGui.SwatMainMenu HUDMenuClass=SwatGui.HUDPage -CacheSizeMegs=32 +CacheSizeMegs=256 UseSound=True ServerActors=IpDrv.MasterServerUplink ServerPackages=Core @@ -234,18 +234,18 @@ TextureDetailLightmap=UltraHigh NoFractalAnim=False [Engine.Player] -ConfiguredInternetSpeed=10000 +ConfiguredInternetSpeed=20000 ConfiguredLanSpeed=20000 [ALAudio.ALAudioSubsystem] -UseEAX=False +UseEAX=True Use3DSound=False UseDefaultDriver=True CompatibilityMode=False UsePrecache=True PrecacheStreamingSounds=True ReverseStereo=false -Channels=32 +Channels=64 StreamingSoundFudgeFactor=0.375 MusicVolume=0.9 AmbientVolume=0.9 @@ -380,7 +380,7 @@ UseStencil=False [Editor.EditorEngine] UseSound=True -CacheSizeMegs=32 +CacheSizeMegs=256 GridEnabled=True SnapVertices=False SnapDistance=10.000000 From 24c9f424c1a31d902cbfa7e84874343aba602b24 Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Tue, 25 Aug 2020 01:45:39 +0200 Subject: [PATCH 02/11] Revert --- System/Default.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/System/Default.ini b/System/Default.ini index bf81206f..fca7a212 100644 --- a/System/Default.ini +++ b/System/Default.ini @@ -89,7 +89,7 @@ Suppress=WindowedMode EnableDevTools=False InitialMenuClass=SwatGui.SwatMainMenu HUDMenuClass=SwatGui.HUDPage -CacheSizeMegs=256 +CacheSizeMegs=32 UseSound=True ServerActors=IpDrv.MasterServerUplink ServerPackages=Core @@ -238,7 +238,7 @@ ConfiguredInternetSpeed=20000 ConfiguredLanSpeed=20000 [ALAudio.ALAudioSubsystem] -UseEAX=True +UseEAX=False Use3DSound=False UseDefaultDriver=True CompatibilityMode=False @@ -380,7 +380,7 @@ UseStencil=False [Editor.EditorEngine] UseSound=True -CacheSizeMegs=256 +CacheSizeMegs=32 GridEnabled=True SnapVertices=False SnapDistance=10.000000 From 09c72e4296aec05f08a053a8ce80466d6e7ef7e0 Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Tue, 25 Aug 2020 02:12:31 +0200 Subject: [PATCH 03/11] Remove functions that have no effect on SWAT4 --- System/Default.ini | 52 ---------------------------------------------- 1 file changed, 52 deletions(-) diff --git a/System/Default.ini b/System/Default.ini index fca7a212..5c66ecad 100644 --- a/System/Default.ini +++ b/System/Default.ini @@ -199,40 +199,6 @@ WindowedViewportXPos=-4 MouseYMultiplier=0.5 MouseXMultiplier=0.5 -[SDLDrv.SDLClient] -WindowedViewportX=640 -WindowedViewportY=480 -FullscreenViewportX=800 -FullscreenViewportY=600 -MenuViewportX=640 -MenuViewportY=480 -Brightness=0.800000 -Contrast=0.700000 -Gamma=0.800000 -UseJoystick=False -JoystickNumber=0 -IgnoreHat=False -JoystickHatNumber=0 -CaptureMouse=True -StartupFullscreen=False -ScreenFlashes=True -NoLighting=False -MinDesiredFrameRate=35.000000 -Decals=True -Coronas=True -DecoLayers=True -Projectors=True -NoDynamicLights=False -ReportDynamicUploads=False -TextureDetailInterface=Normal -TextureDetailTerrain=Normal -TextureDetailWeaponSkin=Normal -TextureDetailPlayerSkin=Normal -TextureDetailWorld=Normal -TextureDetailRenderMap=Normal -TextureDetailLightmap=UltraHigh -NoFractalAnim=False - [Engine.Player] ConfiguredInternetSpeed=20000 ConfiguredLanSpeed=20000 @@ -330,14 +296,6 @@ Contrast=0.7 Gamma=0.8 NoFractalAnim=True -[XBoxAudio.XBoxAudioSubsystem] -ReverseStereo=False -Channels=32 -MusicVolume=1.0 -SoundVolume=1.0 -AmbientFactor=1.0 -UsePrecache=True - [D3DDrv.D3DRenderDevice] DetailTextures=True UsePrecaching=True @@ -362,16 +320,6 @@ CheckForOverflow=False ; UseShaderConstantChecking tries to minimize shader constant changes, for performance UseShaderConstantChecking=True -[OpenGLDrv.OpenGLRenderDevice] -DetailTextures=True -UsePrecaching=True -UseCompressedLightmaps=True -UseTrilinear=True -UseStencil=False -MaxTextureUnits=8 -VARSize=32 -ReduceMouseLag=False - [Engine.NullRenderDevice] DetailTextures=True UsePrecaching=True From 2c7f98d1031f7bd6b1f0a37eb4861d3043e2badf Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Tue, 25 Aug 2020 02:15:30 +0200 Subject: [PATCH 04/11] Remove comment --- System/Default.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/System/Default.ini b/System/Default.ini index 5c66ecad..240e5859 100644 --- a/System/Default.ini +++ b/System/Default.ini @@ -19,7 +19,6 @@ FirstRun=0 ;UsePerforce=0 RenderDevice=D3DDrv.D3DRenderDevice AudioDevice=ALAudio.ALAudioSubsystem -;AudioDevice=XboxAudio.XboxAudioSubsystem NetworkDevice=IpDrv.TcpNetDriver DemoRecordingDevice=Engine.DemoRecDriver Console=Engine.Console From 87c12ba2befdd5995ca2fa65dac010fdc46f373e Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Tue, 25 Aug 2020 02:35:42 +0200 Subject: [PATCH 05/11] Remove unnecessary entries / Increasing bandwith --- System/Swat4X.ini | 55 +---------------------------------------------- 1 file changed, 1 insertion(+), 54 deletions(-) diff --git a/System/Swat4X.ini b/System/Swat4X.ini index 6b16d414..56e6adc4 100644 --- a/System/Swat4X.ini +++ b/System/Swat4X.ini @@ -23,7 +23,6 @@ BestGuessDefaultResolutionY=1200 ;UsePerforce=0 RenderDevice=D3DDrv.D3DRenderDevice AudioDevice=ALAudio.ALAudioSubsystem -;AudioDevice=XboxAudio.XboxAudioSubsystem NetworkDevice=IpDrv.TcpNetDriver DemoRecordingDevice=Engine.DemoRecDriver Console=Engine.Console @@ -198,42 +197,8 @@ WindowedViewportXPos=-5 MouseYMultiplier=0.500000 MouseXMultiplier=0.500000 -[SDLDrv.SDLClient] -WindowedViewportX=640 -WindowedViewportY=480 -FullscreenViewportX=800 -FullscreenViewportY=600 -MenuViewportX=640 -MenuViewportY=480 -Brightness=0.800000 -Contrast=0.700000 -Gamma=0.800000 -UseJoystick=False -JoystickNumber=0 -IgnoreHat=False -JoystickHatNumber=0 -CaptureMouse=True -StartupFullscreen=False -ScreenFlashes=True -NoLighting=False -MinDesiredFrameRate=35.000000 -Decals=True -Coronas=True -DecoLayers=True -Projectors=True -NoDynamicLights=False -ReportDynamicUploads=False -TextureDetailInterface=Normal -TextureDetailTerrain=Normal -TextureDetailWeaponSkin=Normal -TextureDetailPlayerSkin=Normal -TextureDetailWorld=Normal -TextureDetailRenderMap=Normal -TextureDetailLightmap=UltraHigh -NoFractalAnim=False - [Engine.Player] -ConfiguredInternetSpeed=10000 +ConfiguredInternetSpeed=20000 ConfiguredLanSpeed=20000 [ALAudio.ALAudioSubsystem] @@ -332,14 +297,6 @@ Contrast=0.7 Gamma=0.8 NoFractalAnim=True -[XBoxAudio.XBoxAudioSubsystem] -ReverseStereo=False -Channels=32 -MusicVolume=1.0 -SoundVolume=1.0 -AmbientFactor=1.0 -UsePrecache=True - [D3DDrv.D3DRenderDevice] DetailTextures=True UsePrecaching=True @@ -363,16 +320,6 @@ TesselationFactor=1.0 CheckForOverflow=False UseShaderConstantChecking=True -[OpenGLDrv.OpenGLRenderDevice] -DetailTextures=True -UsePrecaching=True -UseCompressedLightmaps=True -UseTrilinear=True -UseStencil=False -MaxTextureUnits=8 -VARSize=32 -ReduceMouseLag=False - [Engine.NullRenderDevice] DetailTextures=True UsePrecaching=True From 73b67593f630dd052405e56c570cee9f64369901 Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Tue, 25 Aug 2020 02:47:12 +0200 Subject: [PATCH 06/11] Remove parts that have no influence --- System/Default.ini | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/System/Default.ini b/System/Default.ini index 240e5859..ba53a286 100644 --- a/System/Default.ini +++ b/System/Default.ini @@ -250,20 +250,6 @@ ProxyServerHost= ProxyServerPort=3128 UseCompression=True -[Engine.DemoRecDriver] -DemoSpectatorClass=Engine.CHSpectator -MaxClientRate=25000 -ConnectionTimeout=60.0 -InitialConnectTimeout=500.0 -AckTimeout=1.0 -KeepAliveTime=1.0 -SimLatency=0 -RelevantTimeout=5.0 -SpawnPrioritySeconds=1.0 -ServerTravelPause=0.0 -NetServerMaxTickRate=60 -LanServerMaxTickRate=60 - [Engine.GameReplicationInfo] ServerName=Another Swat4 Server ShortName=Swat4 Server @@ -319,12 +305,6 @@ CheckForOverflow=False ; UseShaderConstantChecking tries to minimize shader constant changes, for performance UseShaderConstantChecking=True -[Engine.NullRenderDevice] -DetailTextures=True -UsePrecaching=True -UseCompressedLightmaps=True -UseStencil=False - [Editor.EditorEngine] UseSound=True CacheSizeMegs=32 From 63e48f453c4bc9a4733d2d387777a3ab1c1979fa Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Tue, 25 Aug 2020 02:49:12 +0200 Subject: [PATCH 07/11] Remove parts --- System/Swat4X.ini | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/System/Swat4X.ini b/System/Swat4X.ini index 56e6adc4..40502332 100644 --- a/System/Swat4X.ini +++ b/System/Swat4X.ini @@ -252,20 +252,6 @@ ProxyServerHost= ProxyServerPort=3128 UseCompression=True -[Engine.DemoRecDriver] -DemoSpectatorClass=Engine.CHSpectator -MaxClientRate=25000 -ConnectionTimeout=60.0 -InitialConnectTimeout=500.0 -AckTimeout=1.0 -KeepAliveTime=1.0 -SimLatency=0 -RelevantTimeout=5.0 -SpawnPrioritySeconds=1.0 -ServerTravelPause=0.0 -NetServerMaxTickRate=60 -LanServerMaxTickRate=60 - [Engine.GameReplicationInfo] ServerName=Another Swat4 Server ShortName=Swat4 Server @@ -320,12 +306,6 @@ TesselationFactor=1.0 CheckForOverflow=False UseShaderConstantChecking=True -[Engine.NullRenderDevice] -DetailTextures=True -UsePrecaching=True -UseCompressedLightmaps=True -UseStencil=False - [Editor.EditorEngine] UseSound=True CacheSizeMegs=32 From e10095e87145bcc522e18f166f840b1dcbe7c188 Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Sun, 30 Aug 2020 17:26:47 +0200 Subject: [PATCH 08/11] Correction --- System/Default.ini | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/System/Default.ini b/System/Default.ini index ba53a286..d089acf4 100644 --- a/System/Default.ini +++ b/System/Default.ini @@ -250,6 +250,20 @@ ProxyServerHost= ProxyServerPort=3128 UseCompression=True +[Engine.DemoRecDriver] +DemoSpectatorClass=Engine.CHSpectator +MaxClientRate=25000 +ConnectionTimeout=60.0 +InitialConnectTimeout=500.0 +AckTimeout=1.0 +KeepAliveTime=1.0 +SimLatency=0 +RelevantTimeout=5.0 +SpawnPrioritySeconds=1.0 +ServerTravelPause=0.0 +NetServerMaxTickRate=60 +LanServerMaxTickRate=60 + [Engine.GameReplicationInfo] ServerName=Another Swat4 Server ShortName=Swat4 Server From d642182ad7515a9a4fc0794928f9b73dea1c7516 Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Sun, 30 Aug 2020 17:32:00 +0200 Subject: [PATCH 09/11] Correction / Increasing MaxInternetClientRate --- System/Swat4X.ini | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/System/Swat4X.ini b/System/Swat4X.ini index 40502332..8a218408 100644 --- a/System/Swat4X.ini +++ b/System/Swat4X.ini @@ -242,7 +242,7 @@ LogPortUnreach=False MaxConnPerIPPerMinute=5 LogMaxConnPerIPPerMin=False MaxDownloadSize=0 -MaxInternetClientRate=7000 +MaxInternetClientRate=20000 DownloadManagers=IpDrv.HTTPDownload DownloadManagers=Engine.ChannelDownload @@ -252,6 +252,20 @@ ProxyServerHost= ProxyServerPort=3128 UseCompression=True +[Engine.DemoRecDriver] +DemoSpectatorClass=Engine.CHSpectator +MaxClientRate=25000 +ConnectionTimeout=60.0 +InitialConnectTimeout=500.0 +AckTimeout=1.0 +KeepAliveTime=1.0 +SimLatency=0 +RelevantTimeout=5.0 +SpawnPrioritySeconds=1.0 +ServerTravelPause=0.0 +NetServerMaxTickRate=60 +LanServerMaxTickRate=60 + [Engine.GameReplicationInfo] ServerName=Another Swat4 Server ShortName=Swat4 Server From 71538e0b06fead848612554509f1e6d8c5a954dd Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Sun, 30 Aug 2020 17:35:51 +0200 Subject: [PATCH 10/11] Correction --- System/Swat4X.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/System/Swat4X.ini b/System/Swat4X.ini index 8a218408..83769a05 100644 --- a/System/Swat4X.ini +++ b/System/Swat4X.ini @@ -320,6 +320,12 @@ TesselationFactor=1.0 CheckForOverflow=False UseShaderConstantChecking=True +[Engine.NullRenderDevice] +DetailTextures=True +UsePrecaching=True +UseCompressedLightmaps=True +UseStencil=False + [Editor.EditorEngine] UseSound=True CacheSizeMegs=32 From d9bf7a704ccc95e5b58222c20b92a965a58e5246 Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Sun, 30 Aug 2020 17:37:33 +0200 Subject: [PATCH 11/11] Correction --- System/Default.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/System/Default.ini b/System/Default.ini index d089acf4..240e5859 100644 --- a/System/Default.ini +++ b/System/Default.ini @@ -319,6 +319,12 @@ CheckForOverflow=False ; UseShaderConstantChecking tries to minimize shader constant changes, for performance UseShaderConstantChecking=True +[Engine.NullRenderDevice] +DetailTextures=True +UsePrecaching=True +UseCompressedLightmaps=True +UseStencil=False + [Editor.EditorEngine] UseSound=True CacheSizeMegs=32