egui-winit adds new repaint events to the event loop on each call, and on some platforms this becomes very expensive.