Low frame rate when adjusting window/level at the beginning of 2D rendering

Hi everyone,
I’m a beginner with VTK. I wrote a simple program to display a 2D CT slice using vtkImageActor. The image displays correctly, and the window/level adjustment works fine visually. However, I noticed a strange issue:
When the program first starts, adjusting the window/level causes a very low frame rate—the image updates very slowly. But if I keep adjusting window/level for a while, the performance improves significantly and the update becomes smooth and fast.
Here’s a simplified version of the relevant code:

m_imageActor = vtkSmartPointer::New();
m_imageActor->SetInterpolate(1);
m_renderer = vtkSmartPointer::New();
m_renderer->AddActor(m_imageActor);
this->renderWindow()->AddRenderer(m_renderer);
this->renderWindow()->GetInteractor()->SetInteractorStyle(vtkSmartPointer::New());

Has anyone else encountered this kind of issue? Could it be related to lazy initialization, driver warm-up, or maybe texture upload? Any advice or suggestions would be appreciated.

Thanks in advance!