yield: render in pfill loop so we never look locked up

pull/1259/head
nick black 4 years ago
parent 68f5ea711e
commit b0c6f697e0
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -64,6 +64,9 @@ int yield_demo(struct notcurses* nc){
ncvisual_destroy(wmv);
return -1;
}
// it's possible that nothing changed (pfilled == 0), but render anyway
// so that it never looks like we locked up
DEMO_RENDER(nc);
}while(pfilled == 0);
tfilled += pfilled;
if(ncvisual_render(nc, wmv, &vopts) == NULL){

Loading…
Cancel
Save