什么是Java2d更快的替代品? [英] What are some faster alternatives to Java2d?

查看:293
本文介绍了什么是Java2d更快的替代品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一些物理模拟,我需要用Java快速渲染。

I'm looking to do some physics simulations and I need fast rendering in Java.

过去我遇到过Java2d的性能问题,那么是快速的选择吗? JOGL明显比Java2d快吗?

I've run into performance issues with Java2d in the past, so what are the fast alternatives? Is JOGL significantly faster than Java2d?

推荐答案

我对Java2D的体验是,如果遵守规则,它可以非常快。通过改变一些简单的东西,我有一个从90%CPU到低于5%CPU的应用程序。例如,使用大型透明PNG是不行的。

My experience with Java2D is that it can be very fast, if you follow the rules. I had an application that went from 90% CPU to less than 5% CPU just by changing a few simple things. Using large transparent PNG's is a no no, for example.

一个非常好的资源是Java-Gaming.org论坛:包括Sun 2D专家在内的很多人都在那里,并提供了许多性能示例和解决方案二维绘图的问题。

A very good resource is the Java-Gaming.org forums: a lot of people, including the Sun 2D specialists, hang out there and provide many examples and solutions to performance issues for 2D drawing.

请参阅: http:// www .javagaming.org / 然后是主题性能调优。

See: http://www.javagaming.org/ and then the topic "Performance Tuning".

这篇关于什么是Java2d更快的替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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