Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / SetMeshMemblockVertexColor Bug or Not ??

Author
Message
theblackbones
5
Years of Service
User Offline
Joined: 31st Jan 2019
Location: France
Posted: 6th Jun 2019 17:05
Hello,
I'm frenchie so I apologize for my poor English.
I think there is a problem with the SetMeshMemblockVertexColor function.
It seems that this function consumes a lot of memory over time.
The program crashes after x cycles, it depends on the machine, OS (windows, linux, android), etc ...
I do not know if the code is bad or if it is a BUG of AGK.
Here is a piece of code, if you have an idea, a solution, I take it.
thank you.

Attachments

Login to view attachments
theblackbones
5
Years of Service
User Offline
Joined: 31st Jan 2019
Location: France
Posted: 6th Jun 2019 18:32
screenshot ...

Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 6th Jun 2019 23:29
its most probably the code but all you should have to do to change the vert colour of an object


The problem is you can only set vertexcolours on objects that have colour attributes already applied
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
theblackbones
5
Years of Service
User Offline
Joined: 31st Jan 2019
Location: France
Posted: 7th Jun 2019 18:03
Ok, thanks Fubarpk, I'm trying to change a piece of code and I'll be back soon !
theblackbones
5
Years of Service
User Offline
Joined: 31st Jan 2019
Location: France
Posted: 8th Jun 2019 21:11
EUREKA !!!!!!

SetMeshMemblockVertexColor is really bugged !!!
here is a piece of code to do the demonstration.

First, run the prog. with Test1 function and it crashes after a while - Look the fps. 22 at home on a old card.
then re-run the prog with Test2 function (comment test1) and .... it works very well and look the fps. 32 on the same pc.

How do you make the information go up to the editor ?

Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 11th Jun 2019 14:47
Thanks, fixed for the next version
theblackbones
5
Years of Service
User Offline
Joined: 31st Jan 2019
Location: France
Posted: 11th Jun 2019 17:53
You're welcome

Login to post a reply

Server time is: 2024-04-26 10:54:04
Your offset time is: 2024-04-26 10:54:04