Re: 2D graphics acceleration
Cross posted at graphics acceleration
Try timing how long it takes to build the new image. I get times in the 500-600ms range.
Re: 2D graphics acceleration
yes, it takes 500-600ms for me too....
so, there is no solution then....?
Re: 2D graphics acceleration
Can you reuse the image? Build it once and then display it rotated?
Re: 2D graphics acceleration
not really.... however, someone suggested rewriting the 'color' function so that it didn't calculate so many sines and cosines, and now it takes only ~100ms to build the image :O
here's the link Graphics acceleration in java
thanks for your help and interest :)
Re: 2D graphics acceleration
Ah yes, Higher math and better algorithms. I'm only a poor coder.
Re: 2D graphics acceleration
ahah :) ey! now there's something else i desperately need help about.
i'm trying to learn opengl with java (jogl binding), but there is no way i can set up things to work appropiately. i've spent hours trying to find the right files to download, and put them in the right folders and set the 'path' variables and so on............. but i couldn't get a success in hours, it's getting me dizzy. could you help me?
Re: 2D graphics acceleration
Can you start a new thread with the new problem?
Give specific details on the errors you are getting and the jar files etc you are working with.
Re: 2D graphics acceleration
Platform - dependent issue, at the end of "pipeline" all Math.sqrt(),Math.sin() and Math.cos() methods are translated to native calls which are implemented as raw assembly instructions : fsin,fcos and fsqrt .Fsin and fcos have each of them ~27 cycles of latency and fsqrt has ~60cycles (measured in cpu's cpi ) multiply sum of instructions latency by the workload measured in pixels to be drawn(also depends on shading algorithm used by the java and by the gdi library and frequent context switching between user32.dll gdi.dll and win32k.sys) and it is not surprise that you got so long drawing latency.You should gain some acceleration of rendering if the display driver could hook rendering calls(like alpha blending) coming from your app and perform rendering in the hardware.As far as i know display drivers in windows are capable of doing this.