C#XNA中的大循环与backgroundworker有什么不同 [英] C# whats different between the big loop in XNA and backgroundworker

查看:100
本文介绍了C#XNA中的大循环与backgroundworker有什么不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XNA进行了绘制和更新....

backgroundworker取得了进展并开始工作...

在舞台上,他们正在做同样的事情.....

那么这两种循环之间有什么不同.??

XNA got draw and update....

backgroundworker got progress and Do work...

theatrically, they are doing the samething.....

so what different between those 2 kind of loops.??

推荐答案

不,它们在做的事情既不相同,实际上也不是理论上". BackgroundWorked在单独的线程中工作.这是获得单独线程(通常使用UI)以避免在UI线程中进行某些工作的三种方法之一,出于明显的原因.
与大多数其他情况一样,关于差异"的问题在这里是不正确的.如果您看不到它,请尝试告诉我们Apple和Apple之间的区别. :-)

—SA
No, their are not doing same thing, neither practically nor "theoretically". BackgroundWorked does its work in a separate thread. This is one of the three ways of getting a separate thread, usually with UI, to avoid doing some work in UI thread, by apparent reasons.

As in most other cases, the question about "difference" is incorrect here. Is you don''t see it, please try to tell us the difference between apple and Apple. :-)

—SA


这篇关于C#XNA中的大循环与backgroundworker有什么不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆