mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 09:31:15 +10:00
* Add startup performance tracing * Lazy initialize non-default tabs * Render install app entries incrementally * Defer and cache toggle status checks * Clean up runspace invocation ownership * Defer GUI runspace pool startup * Defer status taskbar asset rendering * Record final speed verification * Fix deferred install render timer callback * Add dispatcher smoke coverage for install rendering * Replace install render timer with dispatcher callbacks * Gate performance tracing behind compile switch * Clean up analyzer warnings in speed changes * Speed up runspace and tab initialization
22 lines
867 B
PowerShell
22 lines
867 B
PowerShell
function Initialize-WinUtilTaskbarOverlayAssets {
|
|
param(
|
|
[bool]$IncludeLogo = $true,
|
|
[bool]$IncludeStatusAssets = $true
|
|
)
|
|
|
|
if ($IncludeLogo -and -not $sync["logorender"]) {
|
|
$sync["logorender"] = (Invoke-WinUtilAssets -Type "Logo" -Size 90 -Render)
|
|
Write-WinUtilPerformanceCheckpoint -Name "Taskbar logo asset rendered"
|
|
}
|
|
|
|
if ($IncludeStatusAssets -and -not $sync["checkmarkrender"]) {
|
|
$sync["checkmarkrender"] = (Invoke-WinUtilAssets -Type "checkmark" -Size 512 -Render)
|
|
Write-WinUtilPerformanceCheckpoint -Name "Taskbar checkmark asset rendered"
|
|
}
|
|
|
|
if ($IncludeStatusAssets -and -not $sync["warningrender"]) {
|
|
$sync["warningrender"] = (Invoke-WinUtilAssets -Type "warning" -Size 512 -Render)
|
|
Write-WinUtilPerformanceCheckpoint -Name "Taskbar warning asset rendered"
|
|
}
|
|
}
|