虚拟场景中异步消息的通信设计  

Design of Asynchronous Messaging Communication in Virtual Scene

在线阅读下载全文

作  者:徐增敏[1,2] 崔忠宁 王会勇[1] 陈光喜[4] 

机构地区:[1]桂林电子科技大学数学与计算科学学院,广西桂林541004 [2]武汉大学国家多媒体软件工程技术研究中心计算机学院,武汉430072 [3]广东欧珀移动通信有限公司,广东东莞523860 [4]桂林电子科技大学计算机科学与工程学院,广西桂林541004

出  处:《小型微型计算机系统》2014年第11期2548-2552,共5页Journal of Chinese Computer Systems

基  金:广西自然科学基金项目(2013GXNSFAA019330)资助

摘  要:现有虚拟现实技术追求逼真的仿真场景,即使在网络环境下仍然沿用传统消息机制拓展应用,针对虚拟场景中消息通信机制研究较少的情况,从小型虚拟场景的网络应用需求出发,分析通信模式和任务对象的特点,按照不同业务逻辑封装任务类,使用状态机方式轮询任务,将任务提交到线程池后选择空闲线程执行,解决了多任务并发中事件响应延迟的问题,提出根据场景消息异步特性设计通信机制,重点分析了元素碰撞检测实例,实现了一款支持多人联网的虚拟应用软件.测试结果表明,该软件在主流操作系统平台上运行流畅,响应速度快,负载能力强.Nowadays, the technologies of virtual reality are pursuing lifelike simulation scenes, but the traditional messaging mechanism is continue to use for extending application under network environment, in consideration of the problems of few researches on messa- ging communication mechanism in virtual scene, begin with the need of network application about small virtual scene, the characters of communication model and task objects are analyzed, objects are encapsulated into classes of tasks according to the different business logic, state machines are used for tasks polling, when tasks are submitted to the thread pool, idle threads are chosen to execute tasks, the problem of event operating lag in multi-task concurrent processing is solved, a communication mechanism is also designed accord- ing to the asynchronousfeature of scene messaging, an example of element collision detection is analyzed in detail, finally a software that support multi-players in network environment is developed as well. The results show that this software, which has high speed of response and strong payload capacity, can run smoothly in popular OS.

关 键 词:线程池 任务队列 并发处理 碰撞检测 

分 类 号:TP393[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象