additive lighting + shadows. edit: .Capx

Show us your completed creations made in Construct 2

Post » Wed Aug 28, 2013 5:57 am

@keepee I can reproduce it every time I start the demo. It isn't even needed to do anything. Just running the demo. Within less than 20 seconds I can see FF's RAM load raising from 300 MB to over 1 GB (at that point I stopped the tests), and most of the acquired RAM isn't released after closing the page. A FF restart is needed. Now that you described, how you did it, I wonder if it is the canvas plugin having issues? Maybe I should alert @ROJOhound just to make sure.

EDIT: I just tested it with Chrome 29 with the same issue. So, if I'm not the only one working with WinXP 32bit and one of these two browsers, there has to be others experiencing the same. It's just that you are not aware of it when running the demo for just a minute or so (assumed, most people will have more than 2 GB RAM)tulamide2013-08-28 06:09:15
Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279

Post » Wed Aug 28, 2013 6:20 am

@keepee @tulamide
Is webgl enabled in the project properties? The canvas plugin has issues with webgl. Namely a performance drop from copying the canvas to a texture for drawing and a memory leak on some systems because the texture isn't freed despite the code telling it to do so. At any rate, disabling webgl should remove the issue at least until I manage a better solution.
So unfortunately this is a known issue that is long overdue for me to fix.
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Wed Aug 28, 2013 10:51 am

@r0j0hound
I see, I think the multiply layer is essential for implementing this, otherwise game objects either wouldn't be visible, or would have to be above the lighting and therefore not lit properly.
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Wed Aug 28, 2013 12:42 pm

Wow, nice work. Thanks for sharing!
Image
B
93
S
36
G
17
Posts: 351
Reputation: 15,828

Post » Thu Aug 29, 2013 6:41 pm

Fixed the memory leak with the canvas plugin. I updated the download in it's topic.
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Thu Aug 29, 2013 6:56 pm

Wow, that was quick, @ROJOhound
Thank you.
Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279

Post » Fri Aug 30, 2013 12:07 am

@R0J0hound, cheers

updated original post with new plugin
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Fri Aug 30, 2013 6:24 pm

[QUOTE=Whiteclaws] No Artifacts on my Implementation ;)[/QUOTE]

Would you be willing to share your cap? I'm interest in how you go rid of the artifacts!

Edit: NM found the other threadMulkaccino2013-08-30 18:27:20
B
51
S
13
G
8
Posts: 194
Reputation: 7,311

Post » Sat Aug 16, 2014 2:28 pm

Care to reupload this? :)
B
21
S
6
Posts: 244
Reputation: 2,655

Post » Tue Aug 18, 2015 9:50 pm

I also wish that it could be reuploaded
Image
B
21
S
3
G
1
Posts: 38
Reputation: 1,590

PreviousNext

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 2 guests