Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

`cpal` blocking window rendering of `ggez`

Abierto
#781 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
rust

Línea de trabajo

The report mentions the bleep example and repeated calls to run from a ggez frame loop, but gives no repository path or runnable reproduction. Start by locating the example and checking how it produces tones and handles timing; the user suspects std::thread::sleep blocks window drawing. Done means identifying a nonblocking way to output the requested tones without blocking rendering, but the repository and exact code are not provided.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I am currently working on an algorithm visualization tool, asking to this for a university project, hence why the repo is private at the moment.
My goal is to output a tone between a certain range when sorting a bar.

I integrated the bleep example into my logic and while it works for very low frame rates, say 1-5 fps, it blocks the drawing of the window otherwise. I am assuming this is caused by std::thread::sleep.

Is there an other non blocking way to output a tone, as if I remove the sleep duration, no tone is output at all.
i am calling run mutliple times in each frame.

If necessary, I can make the repository public.

If relevant:
OS: Fedora Workstation 38

  • ggez 0.9.0-rc0
  • cpal 0.15.2
Lenguaje dominante
Rust
Estrellas
4k
Forks
554
Merge medio
3 d 3 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de RustAudio/cpal

Todos los issues de RustAudio/cpal

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.