Skip to content

Commit

Permalink
Misc: Big Browser overlay performance improvements, update internal c…
Browse files Browse the repository at this point in the history
…hromium version to 116.0.5845.180

quick test config: functional fullscreen(1600x900) overlay, fullscreen osu, offline, replay playing, unlimited framerate
no overlay (just osu!) - 0,38 ~ 0,5ms
this overlay version (V3) - 0,38 ~ 0,7ms
previous overlay version (V2) - 0,6 ~ 1,2ms
  • Loading branch information
Piotrekol committed Sep 8, 2023
1 parent 073edc2 commit b69030a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/IngameOverlays/BrowserOverlay/BrowserOverlay.cs
Expand Up @@ -90,7 +90,7 @@ private void OnSettingUpdated(object sender, (string SettingName, object Value)?

private bool TryRemoveOldAssets()
{
string[] oldFileNames = { "BrowserOverlay.zip" };
string[] oldFileNames = { "BrowserOverlay.zip", "BrowserOverlayAssetsV2.zip" };
foreach (var filename in oldFileNames)
{
var filePath = Path.Combine(_saver.SaveDirectory, filename);
Expand All @@ -117,8 +117,8 @@ private bool TryRemoveOldAssets()
}

File.Delete(filePath);
}
}
}

return true;
}
Expand All @@ -129,7 +129,7 @@ private async Task Initialize()
return;

var assetsLocation = GetAssetsLocation(_saver);
var zipFileLocation = Path.Combine(_saver.SaveDirectory, "BrowserOverlayAssetsV2.zip");
var zipFileLocation = Path.Combine(_saver.SaveDirectory, "BrowserOverlayAssetsV3.zip");
var overlayFilesMissing = true;
if (File.Exists(zipFileLocation))
{
Expand Down Expand Up @@ -214,7 +214,7 @@ private async Task<bool> DownloadAndUnpackOverlay(string zipFileLocation, string

private async Task DownloadOverlay(string destination)
{
const string browserOverlayUrl = @"https://pioo.space/StreamCompanion/BrowserOverlayAssetsV2.zip";
const string browserOverlayUrl = @"https://pioo.space/StreamCompanion/BrowserOverlayAssetsV3.zip";
#pragma warning disable SYSLIB0014 // WebClient is deprecated, use HttpClient instead
using var client = new WebClient();
#pragma warning restore SYSLIB0014
Expand Down

0 comments on commit b69030a

Please sign in to comment.