1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-10-16 06:00:45 +00:00

Fixed CPU rogue cycle issue when using touchUpdate doc

This commit is contained in:
hawkeye 2023-11-04 22:16:41 -04:00
parent ccd2409126
commit b001ee5234
9 changed files with 39 additions and 40 deletions

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.DomainModel</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.0.3.2</Version>
<AssemblyVersion>4.0.3.2</AssemblyVersion>
<FileVersion>4.0.3.2</FileVersion>
<Version>4.0.3.3</Version>
<AssemblyVersion>4.0.3.3</AssemblyVersion>
<FileVersion>4.0.3.3</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -14,9 +14,9 @@
<RootNamespace>MSFSPopoutPanelManager.MainApp</RootNamespace>
<ApplicationIcon>logo.ico</ApplicationIcon>
<Platforms>x64</Platforms>
<Version>4.0.3.2</Version>
<AssemblyVersion>4.0.3.2</AssemblyVersion>
<FileVersion>4.0.3.2</FileVersion>
<Version>4.0.3.3</Version>
<AssemblyVersion>4.0.3.3</AssemblyVersion>
<FileVersion>4.0.3.3</FileVersion>
<DebugType>embedded</DebugType>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<!-- Publishing options -->

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.Orchestration</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.0.3.2</Version>
<AssemblyVersion>4.0.3.2</AssemblyVersion>
<FileVersion>4.0.3.2</FileVersion>
<Version>4.0.3.3</Version>
<AssemblyVersion>4.0.3.3</AssemblyVersion>
<FileVersion>4.0.3.3</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -1,10 +1,14 @@
## Version 4.0.3 Beta 3
* Fixed CPU rogue cycle issue when using touch feature in pop out panel.
## Version 4.0.3 Beta 2
* Update logic to turbo mode to help resolve pop out reliability issue.
* Updated logic to turbo mode to help resolve pop out reliability issue.
* Added please wait message when editing panel source to resolve the confusion that Pop Out Panel Manager seems to hang when trying to select panel source when creating a new aircraft profile.
* Added please wait message when editing panel source to resolve the confusion that Pop Out Panel Manager seems to hang when trying to select panel source during creation of a new aircraft profile.
* Remove pop out failure error message when after pop out predefined camera view has not been setup for an aircraft.
* Removed pop out failure error message when after pop out predefined camera view has not been setup for an aircraft.
* KNOWN ISSUE: For A2A Comanche PA-24-250, pop out step "Resetting camera view" does not work since this aircraft does not seem to implement SimConnect variable CAMERA_VIEW_TYPE_AND_INDEX:1 which Pop Out Panel Manager uses.

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.Shared</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.0.3.2</Version>
<AssemblyVersion>4.0.3.2</AssemblyVersion>
<FileVersion>4.0.3.2</FileVersion>
<Version>4.0.3.3</Version>
<AssemblyVersion>4.0.3.3</AssemblyVersion>
<FileVersion>4.0.3.3</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.SimConnectAgent</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.0.3.2</Version>
<AssemblyVersion>4.0.3.2</AssemblyVersion>
<FileVersion>4.0.3.2</FileVersion>
<Version>4.0.3.3</Version>
<AssemblyVersion>4.0.3.3</AssemblyVersion>
<FileVersion>4.0.3.3</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -1,13 +1,17 @@
# Version History
<hr/>
## Version 4.0.3 Beta 3
* Fixed CPU rogue cycle issue when using touch feature in pop out panel.
## Version 4.0.3 Beta 2
* Update logic to turbo mode to help resolve pop out reliability issue.
* Updated logic to turbo mode to help resolve pop out reliability issue.
* Added please wait message when editing panel source to resolve the confusion that Pop Out Panel Manager seems to hang when trying to select panel source when creating a new aircraft profile.
* Added please wait message when editing panel source to resolve the confusion that Pop Out Panel Manager seems to hang when trying to select panel source during creation of a new aircraft profile.
* Remove pop out failure error message when after pop out predefined camera view has not been setup for an aircraft.
* Removed pop out failure error message when after pop out predefined camera view has not been setup for an aircraft.
* KNOWN ISSUE: For A2A Comanche PA-24-250, pop out step "Resetting camera view" does not work since this aircraft does not seem to implement SimConnect variable CAMERA_VIEW_TYPE_AND_INDEX:1 which Pop Out Panel Manager uses.

View file

@ -111,9 +111,9 @@ namespace MSFSPopoutPanelManager.WindowsAgent
Task.Run(() =>
{
PInvoke.mouse_event(MOUSEEVENTF_LEFTUP, info.pt.X, info.pt.Y, 0, 0); // focus window
Thread.Sleep(ApplicationSetting.TouchSetting.TouchDownUpDelay + 25);
Thread.Sleep(ApplicationSetting.TouchSetting.TouchDownUpDelay + 5);
PInvoke.mouse_event(MOUSEEVENTF_LEFTDOWN, info.pt.X, info.pt.Y, 0, 0);
Thread.Sleep(ApplicationSetting.TouchSetting.TouchDownUpDelay + 50);
Thread.Sleep(ApplicationSetting.TouchSetting.TouchDownUpDelay + 25);
_isTouchDown = false;
});
}
@ -145,27 +145,18 @@ namespace MSFSPopoutPanelManager.WindowsAgent
{
Task.Run(() =>
{
while (_isTouchDown) { }
SpinWait.SpinUntil(() => !_isTouchDown, TimeSpan.FromSeconds(0.25));
if (_isDragged)
{
if (ApplicationSetting.TouchSetting.TouchDownUpDelay > 0)
Thread.Sleep(ApplicationSetting.TouchSetting.TouchDownUpDelay);
PInvoke.SetCursorPos(info.pt.X, info.pt.Y);
if (ApplicationSetting.TouchSetting.TouchDownUpDelay > 0)
Thread.Sleep(ApplicationSetting.TouchSetting.TouchDownUpDelay);
InputEmulationManager.LeftClickFast(info.pt.X, info.pt.Y);
PInvoke.mouse_event(MOUSEEVENTF_LEFTUP, info.pt.X, info.pt.Y, 0, 0);
Thread.Sleep(ApplicationSetting.TouchSetting.TouchDownUpDelay + 25);
PInvoke.mouse_event(MOUSEEVENTF_LEFTUP, info.pt.X, info.pt.Y, 0, 0);
_isDragged = false;
}
else
{
if (ApplicationSetting.TouchSetting.TouchDownUpDelay > 0)
Thread.Sleep(ApplicationSetting.TouchSetting.TouchDownUpDelay);
PInvoke.mouse_event(MOUSEEVENTF_LEFTUP, info.pt.X, info.pt.Y, 0, 0);
}

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.WindowsAgent</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.0.3.2</Version>
<AssemblyVersion>4.0.3.2</AssemblyVersion>
<FileVersion>4.0.3.2</FileVersion>
<Version>4.0.3.3</Version>
<AssemblyVersion>4.0.3.3</AssemblyVersion>
<FileVersion>4.0.3.3</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>