mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
egui: Move comment
This commit is contained in:
@@ -76,14 +76,15 @@ struct Repaint {
|
|||||||
impl Default for Repaint {
|
impl Default for Repaint {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
let mut repaint_after = HashMap::default();
|
let mut repaint_after = HashMap::default();
|
||||||
|
|
||||||
|
// Start with painting an extra frame to compensate for some widgets
|
||||||
|
// that take two frames before they "settle":
|
||||||
repaint_after.insert(ViewportId::MAIN, std::time::Duration::from_millis(100));
|
repaint_after.insert(ViewportId::MAIN, std::time::Duration::from_millis(100));
|
||||||
let mut repaint_requests = HashMap::default();
|
let mut repaint_requests = HashMap::default();
|
||||||
repaint_requests.insert(ViewportId::MAIN, 1);
|
repaint_requests.insert(ViewportId::MAIN, 1);
|
||||||
Self {
|
Self {
|
||||||
frame_nr: 0,
|
frame_nr: 0,
|
||||||
repaint_after,
|
repaint_after,
|
||||||
// Start with painting an extra frame to compensate for some widgets
|
|
||||||
// that take two frames before they "settle":
|
|
||||||
repaint_requests,
|
repaint_requests,
|
||||||
request_repaint_callback: None,
|
request_repaint_callback: None,
|
||||||
requested_repaint_last_frame: false,
|
requested_repaint_last_frame: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user