warren

Calgary, Canada

Age: 27

I am a java programmer and a philosopher. Nothing annoys/interests me more than a problem I can't solve. I also like video games.

May
20
awarded Teacher
May
19
awarded Editor
May
19
revised Shall remainder always be positive?
added addendum
May
19
answered Shall remainder always be positive?
Feb
8
revised Looking for an efficient integer square root algorithm for ARM Thumb2
fix error
Feb
7
answered Looking for an efficient integer square root algorithm for ARM Thumb2
Feb
3
comment Is it possible to detect window occlusion
If I understand you correctly, I already knew that Relying on builtin Java2D behaviour would not be enough. To save on resources when window is hidden.
Jan
31
awarded Commentator
Jan
31
comment Is it possible to detect window occlusion
Currently, I am drawing to the screen by rendering to either a buffered image or a volatile image, depending on if I need low level pixel manipulation or not, then drawing the image to the window. I am monitoring by setting the resolution to max and looking at the computer's CPU usage while playing an animation at 10.7hz.
Jan
28
comment Is it possible to detect window occlusion
My tests show that rendering speed/cost is unaffected by if the window is covered or not.
Jan
25
asked Is it possible to detect window occlusion
Dec
28
accepted speed of nested synchronized
Dec
28
answered speed of nested synchronized
Dec
28
comment What is the fastest way to find if a large integer is power of ten?
another fail fast test is powers of five end in binary 01 and the rest of the digits follow a repeating pattern (k mod 2^number_of_digits) that can allow for a condensed table.
Dec
28
accepted What is the fastest way to find if a large integer is power of ten?
Dec
28
comment What is the fastest way to find if a large integer is power of ten?
to be very specific, 0-(2^32-1) digits stored in a custom linked list data structure.
Dec
28
comment What is the fastest way to find if a large integer is power of ten?
Also, I could use log_2(5)*k as a length estimate and early fail test.
Dec
28
awarded Supporter
Dec
28
comment What is the fastest way to find if a large integer is power of ten?
I know a lookup table would work. But I don't want to store one in memory.
Dec
28
comment What is the fastest way to find if a large integer is power of ten?
10=2*5. Why didn't I think of that? Also, I am using Java and the number is stored as a simple list of integers.
1 2 3