Closed Azq2 closed 3 months ago
Where is the infinite loop occurring exactly? I don’t understand what your code is doing.
I can’t reproduce this. By infinite loop do you mean frame
doesn’t return or you get a blank image? You don’t seem to be incrementing the frame counter, some shaders require that to play intros.
I can’t reproduce this. By infinite loop do you mean
frame
doesn’t return or you get a blank image? You don’t seem to be incrementing the frame counter, some shaders require that to play intros.
No, I mean exactly infinity loop. Code is never ending on filter.frame().
More minimal example: https://github.com/Azq2/librashader-bug
Hmm, this shader is just slow. Ok, my mistake, sorry :)
$ time cargo run
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s
Running `target/debug/librashader-bug`
call frame...
frame is ended!
real 0m10.581s
user 0m13.920s
sys 0m0.850s
Shader: https://github.com/libretro/slang-shaders/blob/master/bezel/Mega_Bezel/Presets/Base_CRT_Presets/MBZ__0__SMOOTH-ADV-GLASS__LCD-GRID.slangp
Engine: OpenGL 4.2
Code