简体   繁体   English

Java图形库(处理,Piccolo和JOGL)

[英]java graphic library(processing, Piccolo, and JOGL)

I'm trying to draw a interactive scatter plot with java. 我正在尝试使用Java绘制交互式散点图。 There are more than a million gene data to plot. 有超过一百万个基因数据要绘制。

For this process I recently examined the performance of drawing(and also moving and zooming) with 30 thousands gene data by using both Processing and Piccolo. 对于这个过程,我最近使用Processing和Piccolo检验了3万个基因数据的绘制(以及移动和缩放)性能。 The performance were almost same or the performance with Piccolo was little better. 性能几乎相同,或者使用短笛的性能稍差。 However I wasn't satisfied with these performance. 但是我对这些表现并不满意。 When I try to move the whole plot or zoom in/out, it took about a seconds to actually works. 当我尝试移动整个图或放大/缩小时,实际需要大约一秒钟的时间。 What I want is to show the plot in a real time. 我想要的是实时显示情节。

So here is a question. 所以这是一个问题。 Is there any other alternative library for 2D display? 还有其他2D显示替代库吗? How about using JOGL? 如何使用JOGL? Do I really have to use open frameworks for this? 我真的必须为此使用开放框架吗?

please give me some help. 请给我一些帮助。

Thanks in advance. 提前致谢。

What might boost the performance is drawing your objects to a buffer first and then draw the buffer to the screen – Draw to offscreen buffer 可能会提高性能的是先将对象绘制到缓冲区,然后将缓冲区绘制到屏幕– 绘制到屏幕外缓冲区

Using OPENGL-mode might improve performance as well: size(400, 400, OPENGL) 使用OPENGL模式也可以提高性能: size(400, 400, OPENGL)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM