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 Studio Chat / [SOLVED] 2000 sprites in Classic WAY FASTER than in Studio....why?

Author
Message
PSY
Valued Member
3
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 11th Sep 2019 00:09 Edited at: 11th Sep 2019 00:51
(edit) THIS ISSUE DOES NOT EXIST WITH STUDIO 0.95 WHICH IS AS FAST AS CLASSIC

Hey,

just ran this code in both latest Classic and latest Studio ( remember to comment out the line #renderer "Basic" when running the code in Classic )




When using Vulkan, it's extremely slow.
When using the basic renderer, it's WAY FASTER in AppGameKit Classic than in AGKS ( 3-4 times on my machine ).
Compiled 64bit on both.

RIG: 970 GTX, Win10 PRO


Please find attached the complete project!


PSY LABS Games
Coders don't die, they just gosub without return

Attachments

Login to view attachments

The author of this post has marked a post as an answer.

Go to answer

blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 11th Sep 2019 00:53 Edited at: 11th Sep 2019 00:58
Same here
Advanced = 51
Basic = 190

Quote: "HIS ISSUE DOES NOT EXIST WITH STUDIO 0.95 WHICH IS AS FAST AS CLASSIC"


Which version is Studio 0.95? Normally it is released by date
PSY
Valued Member
3
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 11th Sep 2019 01:36
Studio 0.95 was a beta stage, before the official release. Anybody who preordered Studio had access to it.

What's bewildering is that the newest Studio ( using the basic renderer ) is so much slower than the newest ( or any ) AppGameKit classic.
Studio used to be as fast as classic, but some recent patch seems to have bugged it.

Vulkan being so slow rendering so many sprites is not bothering me at the moment. I can always compile 2 different versions, one using Vulkan, the other using the basic renderer, so the user can choose.
What's really bothering me is that the latest Studio is so much slower than the latest Classic, using the same standard rendering engine...

Newest Studio ( Advanced ) = 70
Newest Studio ( Basic ) = 177
Newest AppGameKit Classic = 445 (!!)
Beta Studio 0.95 = 438 (!!)


PSY LABS Games
Coders don't die, they just gosub without return
c0d3r9
1
Years of Service
User Offline
Joined: 2nd Oct 2017
Location:
Posted: 11th Sep 2019 10:09
As i remember. The beta version of AGKS uses partically the classic interpreter.
Thats the reason why...
Laptop: Win10@64bit - i3 2x2Ghz - 8GB Ram - 1TB HDD
Desktop: Win10@64bit - AMD Ryzen 5 2400G - MSI B450 Tomahawk - 8GB Ram - 240GB SSD
PSY
Valued Member
3
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 11th Sep 2019 11:52
Hey C0d3r9,

OK that would explain why that beta is so fast.


But I still dont get why the new Studio -when using the old renderer- is so slow compared to AppGameKit Classic.
I mean, 177fps vs 445 FPS....thats about 250% faster

Does this only affect massive sprite handling, or is it a common problem with many objects?
Where does this speed drop come from?


PSY LABS Games
Coders don't die, they just gosub without return
PSY
Valued Member
3
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 11th Sep 2019 12:09
This post has been marked by the post author as the answer.
OK,

just found a thread where Paul says:

Quote: "2) The Studio OpenGL renderer has a bug that causes sprite rendering to be much slower than AGK2 when using Render() or Sync() (fixed in the next version of Studio)"


Here's the thread: https://forum.thegamecreators.com/thread/224808?page=2

The thread date is 7th Aug 2019, whereas the current Studio version date is 5th Aug 2019. So I guess we'll just wait for the next Studio version to fix this


PSY LABS Games
Coders don't die, they just gosub without return
PSY
Valued Member
3
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 17th Sep 2019 15:01
Just tested the new Studio version which came out today.
Sprite rendering is now as fast in Studio as it is in AppGameKit Classic.

Awesome job guys!!!

Cheers
PSY


PSY LABS Games
Coders don't die, they just gosub without return

Login to post a reply

Server time is: 2019-09-18 12:32:08
Your offset time is: 2019-09-18 12:32:08