Emil Ernerfeldt
bee5d320c6
Add some puffin profiling scopes
2023-11-07 19:51:37 +01:00
Emil Ernerfeldt
2d54b4b3e2
Small cleanup and renamings
2023-11-07 19:37:46 +01:00
Emil Ernerfeldt
a3b02002ea
Some better naming and cleanup of viewport.rs
2023-11-07 19:17:24 +01:00
Emil Ernerfeldt
96f1426c6f
Clean up how max_texture_side is set
2023-11-07 19:06:16 +01:00
Emil Ernerfeldt
35a799c6a1
Refactor glow setup a bit
2023-11-07 18:51:25 +01:00
Emil Ernerfeldt
25fd7ba2be
Fix wrong pixels-per-point for wgpu
2023-11-07 18:42:04 +01:00
Emil Ernerfeldt
f300c951b3
Rename the viewport types to "immediate" and "deferred"
2023-11-07 11:50:59 +01:00
Emil Ernerfeldt
85c8708524
egui-wgpu cleanup
2023-11-07 11:25:41 +01:00
Emil Ernerfeldt
645521bcee
Clarify logic around how viewports are retained, and add ViewportIdSet
2023-11-07 11:14:04 +01:00
Konkitoman
54c6d51b66
Move egui_winit::changes_between_builders to egui::ViewportBuilder::patch
2023-11-07 12:06:42 +02:00
Konkitoman
76fd5624b7
eframe:
...
* Fix wgpu builders memory leak
* Fix wgpu only using the first viewport builder
* Fix glow setting the wrong parent id
2023-11-07 11:56:42 +02:00
Emil Ernerfeldt
d6a5c8b6bf
Introduce ViewportIdSet
2023-11-07 10:24:56 +01:00
Emil Ernerfeldt
7bc5698079
Always use the latest async callback when rendering a viewport
2023-11-07 09:48:07 +01:00
Emil Ernerfeldt
6643713cc0
Remove Context::is_desktop
2023-11-07 09:30:00 +01:00
Emil Ernerfeldt
8aa14d2fae
Allow changing titles
2023-11-06 20:14:24 +01:00
Emil Ernerfeldt
a52d38312c
MAIN -> ROOT
2023-11-06 19:19:37 +01:00
Emil Ernerfeldt
6a371e59cb
Define a fast ViewportMap type
2023-11-06 19:13:00 +01:00
Emil Ernerfeldt
39f13b4551
Hide close-button for child viewports by default
2023-11-06 10:51:56 +01:00
Emil Ernerfeldt
3cb8f49b46
ViewportId now wraps Id
2023-11-03 15:02:51 +01:00
Emil Ernerfeldt
47e7b9d2dc
Minor naming cleanup
2023-11-03 14:09:36 +01:00
Emil Ernerfeldt
f14fa1663e
rename pair to id_pair
2023-11-03 13:45:44 +01:00
Emil Ernerfeldt
256ad734b4
More cleanup
2023-11-03 13:36:12 +01:00
Emil Ernerfeldt
1f0fc7a005
format let-else statements
2023-11-03 13:15:21 +01:00
Emil Ernerfeldt
9fd65ad21e
Rename render to viewport_ui_cb to avoid confusion
2023-11-03 12:09:09 +01:00
Emil Ernerfeldt
51b083a896
Misc code cleanup
2023-11-03 11:37:09 +01:00
Emil Ernerfeldt
0df4b493fb
Better error reporting
2023-11-03 11:36:07 +01:00
Konkitoman
75e6d3c85d
Fix crash on eframe wgpu when rendering a sync viewport in a sync viewport
...
Better names
2023-11-02 11:18:39 +02:00
Emil Ernerfeldt
46febb4af1
Fix crash during shutdown
2023-11-02 09:07:38 +01:00
Emil Ernerfeldt
9749e1ea6d
Move Rc<RefCell<……>> outside of struct Viewports
2023-11-02 09:05:19 +01:00
Konkitoman
76d3873b47
Better names
2023-11-01 21:27:27 +02:00
Konkitoman
2b8e5b5896
Fix crash when rendering a sync viewport in a sync viewport
2023-11-01 21:00:14 +02:00
Emil Ernerfeldt
e5dab1eec9
Less RefCell in parameters
2023-11-01 19:04:16 +01:00
Emil Ernerfeldt
7340acf7b3
Less RefCell in parameters
2023-11-01 19:03:43 +01:00
Emil Ernerfeldt
2eb1240648
Less RefCell in parameters
2023-11-01 19:02:46 +01:00
Emil Ernerfeldt
7c1af06cc9
Less RwLock
2023-11-01 19:00:57 +01:00
Emil Ernerfeldt
9fce858c5f
Less RwLock in parameters
2023-11-01 18:52:00 +01:00
Emil Ernerfeldt
3d1ee1bafa
Replace some Arc with Rc to make it clear what is thread-local
2023-11-01 18:45:16 +01:00
Emil Ernerfeldt
ec39563183
Use less RwLocks and Arcs in public interfaces
2023-11-01 18:43:13 +01:00
Emil Ernerfeldt
521678b5d9
Simplify another function signature
2023-11-01 18:35:17 +01:00
Emil Ernerfeldt
f6c5e71870
Simplify function signature
2023-11-01 18:27:02 +01:00
Emil Ernerfeldt
abc70ccf9c
Misc code cleanup
2023-11-01 18:19:19 +01:00
Emil Ernerfeldt
678a3b035e
Replace RwLock with RefCell in thread_local
2023-11-01 18:19:01 +01:00
Emil Ernerfeldt
cc31695c03
Remove unused use statment
2023-11-01 17:02:02 +01:00
Konkitoman
d6c2f3e8f3
Fix pixels per point for multiples viewports
...
Fix ./scripts/check.sh errors
2023-10-22 17:15:21 +03:00
Konkitoman
84ef02d9f5
eframe WGPU:
...
* Fix msaa and depth textures for multiples viewports
* Fix panic when the width or height was 0
2023-10-20 18:40:11 +03:00
Konkitoman
9e89188ebe
Fix trying to render not existent viewport resulting in 100% cpu usage
2023-10-19 20:05:21 +03:00
Konkitoman
f5e1d0869e
Fixing:
...
* Fix web
* Fix errors from ./scripts/check.sh
2023-10-19 18:50:48 +03:00
Konkitoman
4f1696cf9c
big refractor
...
egui:
* removed FullOutput::repaint_after
* now for redraw only request_repaint_callback is used!
* now on every Context::request_repaint() will repaint only once
* exposed Context::requested_repaint and Context::requested_repaint_last_frame
eframe:
* now event result is returned as EventResult insted of Vec<EventResult>
* fix to many redraw requests
----:
* fix egui not waking when a repaint was from other thread
* now every thing feels more responsive!
2023-10-19 15:53:38 +03:00
Konkitoman
b1e7fafe70
egui:
...
* now every viewport has his own frame_nr
eframe:
* some refactoring
* now on Windows spinner will make the async viewport refresh, this problem was only for async viewport in Windows
* problem found there are two redraw systems, one was broken now is fixed, the one that was broken on Linux X11 was not needed, but for Windows both are needed!
1: The egui repaint_callback system
2: The egui repaint_after from FullOutput
2023-10-18 18:47:16 +03:00
Konkitoman
7f1a1e3b2e
Now in ViewportBuilder has close_button and drag_and_drop enabled by default!
...
Fix Windows not rendering a sync viewport in a sync viewport
2023-10-18 14:50:42 +03:00