Dear processing-community,
maybe someone can answer me a funny question. For some greater reason I am using forcefields to move objects over a field. as these objects cause these fields themselves, and the pixels of the field only communicate with their direct neighbors, I am also using a seperated thread to calculate these fields. The thread runs about 15times faster than the draw(), which improves the speed and quality of the field. The thread stores its calculated values in Arrays. The weird thing is: if I pass these values from thread to draw() the framrate goes down from 60 to 35. It does not matter if if pass 1 Array or 8. It does not matter, if I pause the thread, while the draw() is reading the values, nor if I make the thread writing the values into a static class, that works as a buffer, so that the draw can read them whenever it gets to it. It doesn't even matter if I set a flag, that the thread only writes the values once, after the draw() read them.
No change in Calculation, the difference between the commented and the uncommented part of the cited method taken from the thread is the one stated above:
I can live withe a framerate about 30, no doubt. but as the thread has to access its Arrays anyway during calculation and the Buffer-class has to acces its Arrays anyway during passing the values to the field-objekt class - I do not understand why particularly THIS connection is causing a loss of performance. If anyone has got an idea... I'd like to know!
Hi
I am using a 3D Environment and for all Processing 2b Versions I get the same assertion (listed at the end of the text).
I found users having a very similar notification in the forum, but their problem seems to be solved with version 2b7. Mine
is not. Following the Link listed, I find myself at the developers page of Java - which is a bit too high for me.
I doubt the already given hints to other users (bytebitten), that it is a problem of computers graphic device. all my drivers environments get updated frequently and I do not have any other Problems with my system, nor Hard- or Software.
I am working on a complex script and any week I cannot switch to Processing_2 only means more work in rewriting. So please any help will be mostly welcome.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000690a3932, pid=4252, tid=7012
#
# JRE version: 6.0_33-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.8-b03 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [atio6axx.dll+0x73932]
#
# An error report file with more information is saved as:
# D:Uissprocessing_2processing-2.0b7hs_err_pid4252.log
#
# If you would like to submit a bug report, please visit:
#
http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#