release: LD KickWatch v1.6.0 - Ultimate fluidity and performance optimization patch
This commit is contained in:
parent
ce27b93e9d
commit
ed8b3817bd
7 changed files with 59 additions and 18 deletions
11
README.md
11
README.md
|
|
@ -4,14 +4,14 @@
|
|||
|
||||
**Kick.com için Modern Masaüstü Canlı Yayın İzleme Stüdyosu ve Sohbet İstemcisi**
|
||||
|
||||
[](https://github.com/LilDosto/LD-KickWatch/releases/latest)
|
||||
[](https://github.com/LilDosto/LD-KickWatch/releases/latest)
|
||||
[-0078D6?style=for-the-badge&logo=windows)](https://github.com/LilDosto/LD-KickWatch)
|
||||
[](https://dotnet.microsoft.com/download/dotnet/8.0)
|
||||
[](./LICENSE)
|
||||
|
||||
Favori **Kick.com** yayıncılarınızı takip edin, anlık canlı yayın ve kategori bildirimleri alın, **Pencere İçi Web Oynatıcı (WebView2)** veya **Pencere İçi Gömülü VLC** ile yayınları izleyin, **2x2 Çoklu Yayın (Squad View)** modunda 4 yayını aynı anda takip edin ve gerçek **Kick Emote** destekli canlı sohbete bağlanın.
|
||||
|
||||
[📦 **Son Sürümü İndir (v1.5.0 Releases)**](https://github.com/LilDosto/LD-KickWatch/releases/latest) • [🚀 **Özellikler**](#-başlıca-özellikler) • [⌨ **Kısayollar**](#-klavye-kısayolları) • [🛠 **Derleme**](#-kaynak-koddan-derleme)
|
||||
[📦 **Son Sürümü İndir (v1.6.0 Releases)**](https://github.com/LilDosto/LD-KickWatch/releases/latest) • [🚀 **Özellikler**](#-başlıca-özellikler) • [⌨ **Kısayollar**](#-klavye-kısayolları) • [🛠 **Derleme**](#-kaynak-koddan-derleme)
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -130,6 +130,13 @@ LD-KickWatch/
|
|||
|
||||
## 🆕 Sürüm Geçmişi
|
||||
|
||||
### 🟢 v1.6.0 (28 Ekim 2026) - Büyük Akışkanlık & Sıfır Donma Optimize Yaması
|
||||
- **🚀 Donanımsal 60 FPS Render & Animasyon Motoru:** WPF alt motoruna 60 FPS hedef kare hızı (`DesiredFrameRate = 60`) ve tam donanım hızlandırmalı render optimizasyonu uygulandı.
|
||||
- **✨ Kanal Listesi UI Sanallaştırması (Smooth 60 FPS Scrolling):** Takip edilen yayıncılar listesinde donanımsal `VirtualizingStackPanel` ve `Recycling` modu etkinleştirildi. 100+ kanal eklendiğinde dahi sıfır takılma ile kaydırma sağlandı.
|
||||
- **🖼 Bellek İçi Dondurulmuş Avatar Önbelleği (In-Memory Avatar Cache):** Yayıncı profil fotoğrafları bellek içine alınıp thread-safe şekilde donduruldu (`Freeze()`). Liste kaydırılırken disk I/O ve görsel yeniden çizim maliyeti tamamen ortadan kaldırıldı.
|
||||
- **⚡ Asenkron Emote Birleştirme (Single-Flight Emotes):** Yoğun sohbette aynı anda geçen popüler ifadeler (örn. KEKW, LUL) eş zamanlı olarak tek bir asenkron görevle indirilip önbelleğe alınır; CPU ve ağ yükü sıfıra indirildi.
|
||||
- **🛡 UI Thread Koruma & Non-Blocking Polling:** Arka planda çalışan canlı yayın durum kontrolleri ve avatar yüklemeleri, UI iş parçacığını asla bloke etmeyecek şekilde `DispatcherPriority.Background` asenkron çağrılarına dönüştürüldü. Pencereler ve menüler her an yağ gibi akıcı kalır.
|
||||
|
||||
### 🟢 v1.5.0 (28 Ekim 2026)
|
||||
- **⚡ Akıcı ve Kesintisiz Canlı Sohbet (Background Dispatcher & Batching):** Canlı sohbette mesajların birkaç saniye sonra tıkanması ve akmaması sorunu tamamen çözüldü. Gelen mesajlar non-blocking kuyruk (`ConcurrentQueue`) ve 75 ms toplu arka plan işleme (`DispatcherTimer`) ile UI'ya aktarılıyor; 100.000 izleyicili yayınlarda dahi sohbet su gibi akıyor.
|
||||
- **🛡 UI Virtualization Entegrasyonu:** Sohbet kutusuna UI sanallaştırma ve geri dönüşüm (`Recycling`) eklendi, gereksiz DOM ölçümleri ve CPU darboğazı ortadan kaldırıldı.
|
||||
|
|
|
|||
|
|
@ -52,6 +52,14 @@ public partial class App : System.Windows.Application
|
|||
|
||||
base.OnStartup(e);
|
||||
|
||||
try
|
||||
{
|
||||
System.Windows.Media.Animation.Timeline.DesiredFrameRateProperty.OverrideMetadata(
|
||||
typeof(System.Windows.Media.Animation.Timeline),
|
||||
new FrameworkPropertyMetadata(60));
|
||||
}
|
||||
catch { }
|
||||
|
||||
DispatcherUnhandledException += OnDispatcherUnhandledException;
|
||||
AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
|
||||
TaskScheduler.UnobservedTaskException += OnUnobservedTaskException;
|
||||
|
|
|
|||
|
|
@ -193,9 +193,17 @@ public class InitialsConverter : IValueConverter
|
|||
/// </summary>
|
||||
public class AvatarImageConverter : IValueConverter
|
||||
{
|
||||
private static readonly ConcurrentDictionary<string, BitmapImage> s_avatarCache = new(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
||||
{
|
||||
if (value is not string path || string.IsNullOrWhiteSpace(path) || !File.Exists(path))
|
||||
if (value is not string path || string.IsNullOrWhiteSpace(path))
|
||||
return null;
|
||||
|
||||
if (s_avatarCache.TryGetValue(path, out var cached))
|
||||
return cached;
|
||||
|
||||
if (!File.Exists(path))
|
||||
return null;
|
||||
|
||||
try
|
||||
|
|
@ -209,6 +217,8 @@ public class AvatarImageConverter : IValueConverter
|
|||
bitmap.StreamSource = stream;
|
||||
bitmap.EndInit();
|
||||
bitmap.Freeze();
|
||||
|
||||
s_avatarCache[path] = bitmap;
|
||||
return bitmap;
|
||||
}
|
||||
catch
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ public static partial class RichChatHelper
|
|||
private static partial Regex EmotePattern();
|
||||
|
||||
private static readonly ConcurrentDictionary<string, BitmapImage> EmoteCache = new(StringComparer.OrdinalIgnoreCase);
|
||||
private static readonly ConcurrentDictionary<string, Task<BitmapImage?>> InFlightEmotes = new(StringComparer.OrdinalIgnoreCase);
|
||||
private static readonly StringToBrushConverter BrushConverter = new();
|
||||
private static readonly SolidColorBrush TimeBrush = CreateFrozenBrush(WpfColor.FromRgb(71, 85, 105));
|
||||
private static readonly SolidColorBrush MessageBrush = CreateFrozenBrush(WpfColor.FromRgb(226, 232, 240));
|
||||
|
|
@ -136,12 +137,28 @@ public static partial class RichChatHelper
|
|||
}
|
||||
|
||||
private static async Task LoadEmoteImageAsync(string emoteId, WpfImage targetImage)
|
||||
{
|
||||
try
|
||||
{
|
||||
var bmp = await InFlightEmotes.GetOrAdd(emoteId, FetchEmoteBitmapAsync).ConfigureAwait(false);
|
||||
if (bmp != null)
|
||||
{
|
||||
await targetImage.Dispatcher.InvokeAsync(() =>
|
||||
{
|
||||
targetImage.Source = bmp;
|
||||
});
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
private static async Task<BitmapImage?> FetchEmoteBitmapAsync(string emoteId)
|
||||
{
|
||||
try
|
||||
{
|
||||
var url = $"https://files.kick.com/emotes/{emoteId}/fullsize";
|
||||
var bytes = await EmoteHttp.GetByteArrayAsync(url).ConfigureAwait(false);
|
||||
if (bytes.Length == 0) return;
|
||||
if (bytes.Length == 0) return null;
|
||||
|
||||
var bmp = new BitmapImage();
|
||||
using (var ms = new MemoryStream(bytes))
|
||||
|
|
@ -155,15 +172,11 @@ public static partial class RichChatHelper
|
|||
bmp.Freeze();
|
||||
|
||||
EmoteCache[emoteId] = bmp;
|
||||
|
||||
await targetImage.Dispatcher.InvokeAsync(() =>
|
||||
{
|
||||
targetImage.Source = bmp;
|
||||
});
|
||||
return bmp;
|
||||
}
|
||||
catch
|
||||
{
|
||||
// İndirilemezse sessizce geç
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@
|
|||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>KickStreamHub</RootNamespace>
|
||||
<AssemblyName>LDKickWatch</AssemblyName>
|
||||
<Version>1.5.0</Version>
|
||||
<AssemblyVersion>1.5.0.0</AssemblyVersion>
|
||||
<FileVersion>1.5.0.0</FileVersion>
|
||||
<Version>1.6.0</Version>
|
||||
<AssemblyVersion>1.6.0.0</AssemblyVersion>
|
||||
<FileVersion>1.6.0.0</FileVersion>
|
||||
<Product>LD KickWatch</Product>
|
||||
<AssemblyTitle>LD KickWatch</AssemblyTitle>
|
||||
<Company>LD KickWatch</Company>
|
||||
|
|
|
|||
|
|
@ -1128,7 +1128,7 @@ public partial class MainViewModel : ObservableObject
|
|||
|
||||
private void OnResultsReady(object? sender, LiveStatusResultEventArgs e)
|
||||
{
|
||||
_dispatcher.Invoke(() => ApplyResults(e.Results));
|
||||
_dispatcher.BeginInvoke(DispatcherPriority.Background, () => ApplyResults(e.Results));
|
||||
}
|
||||
|
||||
private void ApplyResults(IReadOnlyDictionary<string, ChannelStatus> results)
|
||||
|
|
@ -1274,7 +1274,7 @@ public partial class MainViewModel : ObservableObject
|
|||
if (card is null) return;
|
||||
if (_avatarCache.TryGetFreshCachedPath(channel, out var cachedPath))
|
||||
{
|
||||
_dispatcher.Invoke(() =>
|
||||
_dispatcher.BeginInvoke(DispatcherPriority.Background, () =>
|
||||
{
|
||||
card.AvatarPath = cachedPath;
|
||||
if (SelectedChannel?.ChannelName.Equals(channel, StringComparison.OrdinalIgnoreCase) == true)
|
||||
|
|
@ -1282,10 +1282,10 @@ public partial class MainViewModel : ObservableObject
|
|||
});
|
||||
return;
|
||||
}
|
||||
var path = await _avatarCache.DownloadAndCacheAsync(channel, url);
|
||||
var path = await _avatarCache.DownloadAndCacheAsync(channel, url).ConfigureAwait(false);
|
||||
if (path != null)
|
||||
{
|
||||
_dispatcher.Invoke(() =>
|
||||
_dispatcher.BeginInvoke(DispatcherPriority.Background, () =>
|
||||
{
|
||||
card.AvatarPath = path;
|
||||
if (SelectedChannel?.ChannelName.Equals(channel, StringComparison.OrdinalIgnoreCase) == true)
|
||||
|
|
|
|||
|
|
@ -229,7 +229,10 @@
|
|||
SelectedItem="{Binding SelectedChannel}"
|
||||
Background="Transparent" BorderThickness="0"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
||||
ScrollViewer.CanContentScroll="False"
|
||||
ScrollViewer.CanContentScroll="True"
|
||||
VirtualizingPanel.IsVirtualizing="True"
|
||||
VirtualizingPanel.VirtualizationMode="Recycling"
|
||||
VirtualizingPanel.ScrollUnit="Pixel"
|
||||
MouseDoubleClick="ChannelList_MouseDoubleClick">
|
||||
<ListBox.ItemContainerStyle>
|
||||
<Style TargetType="ListBoxItem">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue