aptal karga (foolish crow)

Started by raft, March 24, 2005, 01:59:36 AM

Previous topic - Next topic

raft

i had published a page for karga at facebook. i also plan to make a facebook application when i find time. it will display online friends, display user avatar in profile page, list user actions in mini feed (raft kissed that, that danced with this etc)

http://www.facebook.com/pages/aptalkarga/19052727583

EgonOlsen

How did it work out? I can't tell from the comments on the page, because my turkish is limited... ;)

raft

well nothing fancy, no special interest to page. most of those comments are from old users which are indeed friends

raft

karga is now using jPCT 1.19, uses built in mipmapper by default and goes multi threaded on multi core cpu's. on a dual core machine, i've noticed %20 performance increase.

if you have a multi core cpu, especially a quad core one, i'd like to hear her performance on your system.

this is a link to run her single threaded regardless of cpu cores
http://www.aptalkarga.com/jws/karga_single_thread.jnlp

and this one goes multi threaded with multiple cores. if it does, it's logged to java console
http://www.aptalkarga.com/jws/karga_window.jnlp

at the bottom left of screen frames/updates per second is written. updates should always be around 40 and frames should never pass updates. so if your frames is around 40, either increase screen size or sampling or do both :) for sampling -> right click | options | video | sampling

cheers,
r a f t

EgonOlsen

#94
On my Core2 Quad @ 3.2Ghz, the single core variant runs @ around 10fps using a maximized window on a 1920*1200 desktop. The multi core variant runs @ 22fps with a cpu load of 65%. About sampling mode: There seems to be a problem with multithreaded downsampling of various buffer heights. It causes image distortion and/or crashes....i'll look into this tomorrow.

BTW: Are you using Config.loadBalancingStrategy=1 or =0 (default)?

raft

10 to 22, %120 increase, amazing :o ;D

i use loadBalancingStrategy 1. javadocs says 1 is better for dynamic scenes, and i thought it fits better to karga. those avatars make the  scene quite dynamic, right ?

EgonOlsen


EgonOlsen

Quote from: raft on October 22, 2009, 09:53:54 AM
10 to 22, %120 increase, amazing :o ;D
Actually, that's pretty bad. I guess that the Swing GUI is a bottleneck here that prevents Karga from scaling better. Rendering only should scale like +80% increase with one additional core, +50% with two additional cores and +30% with four cores.

raft

possibly right. but it is all i have for such a complicated gui.

EgonOlsen

Quote from: EgonOlsen on October 21, 2009, 11:55:36 PM
There seems to be a problem with multithreaded downsampling of various buffer heights. It causes image distortion and/or crashes....i'll look into this tomorrow.
I've looked into this issue and updated the jar. However, the fix is not 100% satisfying ATM. When using OGSS_FAST on a buffer of an uneven width, i had to to disable multi threaded downsampling. I just couldn't get that combination to work. OGSS should work fine though and sp should OGUS. Please give it a try anyway.

raft

thank you. i'l try it this evening or tomorrow.

EgonOlsen

Quote from: EgonOlsen on October 22, 2009, 11:46:59 PM
However, the fix is not 100% satisfying ATM. When using OGSS_FAST on a buffer of an uneven width, i had to to disable multi threaded downsampling. I just couldn't get that combination to work.
Sometimes its useful to let some time pass, step back, delete all the stupid code and start from scratch...i did that with the downsampling and now it works multi threaded in all modes and all resolutions. I'll update the jar later as well as the official 1.19 release.

EgonOlsen

I've uploaded a fixed jar. It's the same as the jar that is in the 1.19 update except that it carries the version number 1.20 instead of 1.19.

raft

i've uploaded new jPCT jar to karga. all seems ok..

EgonOlsen

Yes, works fine now. I've shown Karga to my almost 2 year old son. He loved hitting space to make the character jump and always winked at him expecting him to wink back. It would be really cool, if the gestures were mapped on some keys so that he can trigger them himself...