JOGL Jar在我的开发机器上运行正常,但在其他机器上运行缓慢?即使他们有更好的硬件 [英] JOGL Jar runs fine on my development machine, but slowly on others? Even if they have better hardware

查看:114
本文介绍了JOGL Jar在我的开发机器上运行正常,但在其他机器上运行缓慢?即使他们有更好的硬件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在与JOGL和JBullet交往,取得了一些成功.我想与朋友分享我创造的东西.我创建了一个jar文件和一个.bat文件,并使用-Dsun.java2d.noddraw = true参数将其打开.广口瓶在我的机器上运行良好.它可以打开并在我的朋友系统和笔记本电脑上运行,但帧速率极高.这是什么原因造成的,我该如何解决?

I am currently messing around with JOGL and JBullet with some success. I'd like to share what I've created with my friends. I created a jar file and a .bat to open it with the argument -Dsun.java2d.noddraw=true. The jar runs perfectly on my machine. It opens and runs on my friends system and my laptop, but at an extremely low frame rate. What is the cause of this and how can I fix it?

同样由于某种原因,它会为某些对象加载错误的纹理,同样只有在另一个系统上运行时才会加载.它们都是Windows 8.1 x64系统.所有系统的图形驱动程序也是最新的.这确实令人不安,因为我希望能够分发此程序.

Also for some reason it loads the wrong textures for some objects, again only when ran on another system. They are both Windows 8.1 x64 systems. The graphics drivers of all systems are up to date as well. This is really disconcerting because i want to be able to distribute this program.

推荐答案

我使用的是GLJPanel而不是GLCanvas. GLJPanel是轻量级的,不支持更复杂的渲染.这使我发疯的时间最长.

I was using GLJPanel instead of GLCanvas. GLJPanel is lightweight and doesn't support more complex rendering. This was driving me crazy for the longest time.

这篇关于JOGL Jar在我的开发机器上运行正常,但在其他机器上运行缓慢?即使他们有更好的硬件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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