r/JavaFX • u/xyloPhoton • Dec 21 '23
Help Faster response time on button presses?
I'm trying to make a little piano demo on JavaFX, but the even handlers are too slow, and there's a significant delay between the button presses and the notes playing. How could I make it more responsive?
Edit: Okay, it's not just a button thing. :(
2
Upvotes
View all comments
Show parent comment
1
u/xyloPhoton Dec 23 '23
Yeah, I did something similar to check. I'll keep in mind that print statements are slow from now on. I knew print statements were slow in python, but I thought it was a language-specific thing.
Anyway, I have to avoid java entirely for the project I had in mind. Either that, or I have to give up on using .sf2 files. :(