dtcristo / bevy_pixels

Bevy plugin that uses Pixels (a tiny pixel buffer) for rendering
https://docs.rs/bevy_pixels
Apache License 2.0
84 stars 12 forks source link

Example not working : the square doesn't move #1

Closed gbip closed 1 year ago

gbip commented 2 years ago

Hey, thank you for this nice little crate !

However when running the example the square is not moving...

I have the same problem within my simulation too.

dtcristo commented 2 years ago

If you give me some more info I might be able to help. Have you tried updating to the new version 0.3.0?

patrick-o-harrison commented 2 years ago

I'm having the same issue. The example renders the first frame and then nothing.

parasyte commented 2 years ago

Do you see the bevy diagnostics printed to the terminal while the example window is open?

2022-03-29T18:38:31.236886Z  INFO bevy diagnostic: frame_count                     :  105.000000  (avg 105.000000)
2022-03-29T18:38:31.237081Z  INFO bevy diagnostic: frame_time                      :    0.005512s (avg 0.005556s)
2022-03-29T18:38:31.237206Z  INFO bevy diagnostic: entity_count                    :    1.000000  (avg 1.000000)
2022-03-29T18:38:31.237283Z  INFO bevy diagnostic: render_time                     :    0.004521s (avg 0.004544s)
2022-03-29T18:38:31.237346Z  INFO bevy diagnostic: fps                             :  179.989813  (avg 179.995273)
2022-03-29T18:38:32.236913Z  INFO bevy diagnostic: frame_count                     :  285.000000  (avg 285.000000)
2022-03-29T18:38:32.237053Z  INFO bevy diagnostic: frame_time                      :    0.005777s (avg 0.005550s)
2022-03-29T18:38:32.237117Z  INFO bevy diagnostic: entity_count                    :    1.000000  (avg 1.000000)
2022-03-29T18:38:32.237182Z  INFO bevy diagnostic: render_time                     :    0.004267s (avg 0.004219s)
2022-03-29T18:38:32.237248Z  INFO bevy diagnostic: fps                             :  180.458672  (avg 180.395031)
patrick-o-harrison commented 2 years ago

Yep:

2022-03-30T04:28:54.080642Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1.25    
2022-03-30T04:28:55.103531Z  INFO bevy diagnostic: frame_count                     :   42.000000  (avg 42.000000)
2022-03-30T04:28:55.103549Z  INFO bevy diagnostic: render_time                     :    0.016285s (avg 0.012725s)
2022-03-30T04:28:55.103557Z  INFO bevy diagnostic: frame_time                      :    0.016724s (avg 0.013352s)
2022-03-30T04:28:55.103564Z  INFO bevy diagnostic: fps                             :   42.890708  (avg 55.641380)
2022-03-30T04:28:55.103570Z  INFO bevy diagnostic: entity_count                    :    1.000000  (avg 1.000000)
2022-03-30T04:28:56.102921Z  INFO bevy diagnostic: frame_count                     :  148.000000  (avg 148.000000)
2022-03-30T04:28:56.102943Z  INFO bevy diagnostic: render_time                     :    0.002933s (avg 0.009886s)
2022-03-30T04:28:56.102950Z  INFO bevy diagnostic: frame_time                      :    0.004116s (avg 0.010964s)
2022-03-30T04:28:56.102957Z  INFO bevy diagnostic: fps                             :  119.339312  (avg 95.819777)
2022-03-30T04:28:56.102961Z  INFO bevy diagnostic: entity_count                    :    1.000000  (avg 1.000000)
2022-03-30T04:28:57.103354Z  INFO bevy diagnostic: frame_count                     :  260.000000  (avg 260.000000)
2022-03-30T04:28:57.103379Z  INFO bevy diagnostic: render_time                     :    0.012408s (avg 0.008446s)
2022-03-30T04:28:57.103385Z  INFO bevy diagnostic: frame_time                      :    0.012736s (avg 0.008981s)
2022-03-30T04:28:57.103389Z  INFO bevy diagnostic: fps                             :  109.153852  (avg 113.910839)
2022-03-30T04:28:57.103394Z  INFO bevy diagnostic: entity_count                    :    1.000000  (avg 1.000000)