Hi, I’m currently writing some geophysical software which takes in a set of data based on seismic layers, and does ray tracing. I have the optimal algorithms for the math involved, but I am being slowed down by my current drawing algorithm in java.
I am currently using a Graphics2D object with .drawLine() to draw my lines on screen. The problem is that there may be up to 4 million lines which need to be drawn to a single image. This is resulting in literally minutes to refresh the screen. With up to 10 seconds just to draw a few thousand lines.
My question is this… for the problem of drawing a lot of lines to the screen, what is the fastest way possible to do this using the standard java api? With no other packages such as jogl, etc?
If you can speed this up somehow i’d be very greatful!