waitEvent() is blocking (http://www.sfml-dev.org/documentation/2.3/classsf_1_1Window.php#aaf02ab64fbc1d374eef3696df54137bc). It is intended to be used in multithreaded programs, where you have a separate thread dedicated to handling events.This is not true. Waiting for events is for times when nothing has to happen unless an event has occurred (a lot of applications but probably not games). Polling events is for real-time updates regardless of if the user or OS is interacting with the program (such as games).
I stand corrected. I was using the (apparently simplified) description from the docs.waitEvent() is blocking (http://www.sfml-dev.org/documentation/2.3/classsf_1_1Window.php#aaf02ab64fbc1d374eef3696df54137bc). It is intended to be used in multithreaded programs, where you have a separate thread dedicated to handling events.This is not true. Waiting for events is for times when nothing has to happen unless an event has occurred (a lot of applications but probably not games). Polling events is for real-time updates regardless of if the user or OS is interacting with the program (such as games).
I stand corrected. I was using the (apparently simplified) description from the docs.I apologise as it may have sounded like I was saying that what you said was wrong and what I said is how it is.
啊哦,你所访问的页面不存在了。Looks like a broken link. Please, upload it once again here for instance (http://prnt.sc/).
可能的原因:
1.在地址栏中输入了错误的地址。
2.你点击的某个链接已过期。
返回上一级页面>
回到网站首页>