Hack change gpose sync timer to 2 seconds

This commit is contained in:
Loporrit
2025-07-03 08:34:18 +00:00
parent 8843add155
commit 8b71320912
2 changed files with 3 additions and 3 deletions

View File

@@ -363,7 +363,7 @@ public class CharaDataGposeTogetherManager : DisposableMediatorSubscriberBase
while (!ct.IsCancellationRequested) while (!ct.IsCancellationRequested)
{ {
await Task.Delay(TimeSpan.FromSeconds(10), ct).ConfigureAwait(false); await Task.Delay(TimeSpan.FromSeconds(2), ct).ConfigureAwait(false);
if (!_dalamudUtil.IsInGpose) continue; if (!_dalamudUtil.IsInGpose) continue;
if (_usersInLobby.Count == 0) continue; if (_usersInLobby.Count == 0) continue;
@@ -415,7 +415,7 @@ public class CharaDataGposeTogetherManager : DisposableMediatorSubscriberBase
{ {
while (!ct.IsCancellationRequested) while (!ct.IsCancellationRequested)
{ {
await Task.Delay(TimeSpan.FromSeconds(_dalamudUtil.IsInGpose ? 10 : 1), ct).ConfigureAwait(false); await Task.Delay(TimeSpan.FromSeconds(_dalamudUtil.IsInGpose ? 2 : 1), ct).ConfigureAwait(false);
// if there are no players in lobby, don't do anything // if there are no players in lobby, don't do anything
if (_usersInLobby.Count == 0) continue; if (_usersInLobby.Count == 0) continue;

View File

@@ -32,7 +32,7 @@ internal sealed partial class CharaDataHubUi
+ "To use GPose together you either create or join a GPose Together Lobby. After you and other people have joined, make sure that everyone is on the same map. " + "To use GPose together you either create or join a GPose Together Lobby. After you and other people have joined, make sure that everyone is on the same map. "
+ "It is not required for you to be on the same server, DC or instance. Users that are on the same map will be drawn as moving purple wisps in the overworld, so you can easily find each other." + UiSharedService.DoubleNewLine + "It is not required for you to be on the same server, DC or instance. Users that are on the same map will be drawn as moving purple wisps in the overworld, so you can easily find each other." + UiSharedService.DoubleNewLine
+ "Once you are close to each other you can initiate GPose. You must either assign or spawn characters for each of the lobby users. Their own poses and positions to their character will be automatically applied." + Environment.NewLine + "Once you are close to each other you can initiate GPose. You must either assign or spawn characters for each of the lobby users. Their own poses and positions to their character will be automatically applied." + Environment.NewLine
+ "Pose and location data during GPose are updated approximately every 10-20s."); + "Pose and location data during GPose are updated approximately every few seconds.");
using var disabled = ImRaii.Disabled(!_charaDataManager.BrioAvailable || !_uiSharedService.ApiController.IsConnected); using var disabled = ImRaii.Disabled(!_charaDataManager.BrioAvailable || !_uiSharedService.ApiController.IsConnected);