Comments (2)
There may be a way to create a minimal working example in pure winit in order to report this bug to winit team, but until now, I am not able to reproduce this bug in pure winit. So I put the codes here. If anyone can make a minimal example and reproduce the bug, please report to winit's github.
use winit::{
event_loop::{EventLoop, ControlFlow},
window::WindowBuilder,
};
fn main() {
let event_loop = EventLoop::new().unwrap();
let window = WindowBuilder::new()
.build(&event_loop)
.unwrap();
event_loop.run(move |event, elwt| {
elwt.set_control_flow(ControlFlow::Wait);
})
.unwrap();
}
from fyrox.
I guess we (you 😅 ) should also try
use winit::{
event::Event,
event_loop::{ControlFlow, EventLoop},
window::WindowBuilder,
};
fn main() {
let event_loop = EventLoop::new().unwrap();
let window = WindowBuilder::new().build(&event_loop).unwrap();
let mut counter = 300;
event_loop
.run(move |event, elwt| {
if let Event::AboutToWait = event {
if counter > 0 {
window.request_redraw();
counter -= 1;
}
}
if counter > 0 {
elwt.set_control_flow(ControlFlow::Poll);
} else {
elwt.set_control_flow(ControlFlow::Wait);
}
})
.unwrap();
}
This is the closest code to what the editor does on startup.
from fyrox.
Related Issues (20)
- The "Run" Button Does Not Work on the Editor
- Is it possible to run VR on all devices with Rust? Are we heading towards the era of wearable VR PCs? HOT 2
- Can't start "Quick Start" from Fyrox Game Engine Book, I get error: stream did not contain valid UTF-8 HOT 3
- Black Screen HOT 4
- Move interaction modes panel to the toolbar
- Add icons for widgets in World Viewer
- Add an ability to rotate the editor camera using scene gizmo HOT 2
- Calculate frame luminance using histogram for HDR HOT 3
- Add an `ImageDecorator` widget
- Add an ability to unassign textures in material editor
- Add ability to perform convex shape casting in physics
- Support for shader editor
- More hotkeys
- Editor crash when saving terrain HOT 1
- Mixamo mesh import issue HOT 2
- Fyrox-Sound glitchy sounds on Android HOT 2
- Bug found - Clicking in asset browser deleted some files and duplicated the data folder 180+ times until I Ctrl+C the editor process. HOT 2
- thread 'main' panicked HOT 25
- No Texture field in the Inspector HOT 7
- Unsound implementation of `transmute_vec_as_bytes` in `fyrox-core` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fyrox.