mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 18:43:51 +00:00
chore: strip temporary PerfLog instrumentation
Профилирование завершено (кадр спектра 8.3мс -> 1.7мс, UI 45% -> 26% ядра): удаляем PerfLog.pas, doc/PERF_PROFILING.md и все // PERF-замеры из WDSPEngine/HPSDRNetwork/PlutoBackend/AudioOutput/SpectrumView(+GL)/ WaterfallViewOpengl/WidebandView/MainForm. Сами оптимизации (full-raw рендерер, дворд-блендеры, порог бэндплана) остаются. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,8 +16,7 @@ interface
|
||||
uses
|
||||
Classes, SysUtils, Graphics, Controls, Math,
|
||||
OpenGLContext, GL,
|
||||
AppTheme, WaterfallView,
|
||||
PerfLog; // ВРЕМЕННО (perf/cpu-profiling): зонные CPU-таймеры
|
||||
AppTheme, WaterfallView;
|
||||
|
||||
type
|
||||
TWaterfallViewOpenGL = class(TWaterfallView)
|
||||
@@ -462,11 +461,9 @@ procedure TWaterfallViewOpenGL.PaintWaterfall(Sender: TObject);
|
||||
var
|
||||
W, H: Integer;
|
||||
R, G, B: GLFloat;
|
||||
T0, Tsw: Int64; // PERF
|
||||
begin
|
||||
if Sender is TOpenGLControl then FGLControl := TOpenGLControl(Sender);
|
||||
if (FGLControl = nil) or (not FGLControl.MakeCurrent) then Exit;
|
||||
T0 := PerfNow; // PERF
|
||||
W := FGLControl.Width;
|
||||
H := FGLControl.Height;
|
||||
if (W <= 0) or (H <= 0) then Exit;
|
||||
@@ -494,10 +491,7 @@ begin
|
||||
end;
|
||||
DrawTextureWrapped(W, H);
|
||||
DrawMarker(W, H);
|
||||
Tsw := PerfNow; // PERF
|
||||
FGLControl.SwapBuffers;
|
||||
PerfAdd(pzUiGlSwap, Tsw); // PERF: SwapBuffers (в т.ч. ожидание vsync)
|
||||
PerfAdd(pzUiPaintWaterfall, T0); // PERF: GL-кадр водопада (включая SwapBuffers)
|
||||
end;
|
||||
|
||||
procedure TWaterfallViewOpenGL.SetTheme(const T: TAppTheme);
|
||||
|
||||
Reference in New Issue
Block a user