Search found 2058 matches

by raidho36
Mon Feb 24, 2020 7:45 pm
Forum: Support and Development
Topic: Any way to get canvases to be more efficient?
Replies: 38
Views: 31702

Re: Any way to get canvases to be more efficient?

Third, post a .love if you want people to help you better. We won't "steal" your game, we're too busy trying to make our own games. He posted (the relevant fraction of) his code. Presumably it's bottlenecked by the CPU due to having to work through pretty ridiculous amount of data before ...
by raidho36
Mon Feb 24, 2020 12:34 pm
Forum: Support and Development
Topic: Any way to get canvases to be more efficient?
Replies: 38
Views: 31702

Re: Any way to get canvases to be more efficient?

GUI just goes on top of everything so it doesn't needs to be a layer. Well actually since everything is rendered in specific order and layers' only purpose is to impose a specific render order - which already exists - there is never any need for layers. I decided not to answer any of that because it...
by raidho36
Mon Feb 24, 2020 11:42 am
Forum: Support and Development
Topic: Infinite vertical platform generation
Replies: 2
Views: 3732

Re: Infinite vertical platform generation

There aren't a lot of platforms so just plopping them around is fine.
by raidho36
Sun Feb 23, 2020 7:00 am
Forum: Support and Development
Topic: Error while trying to play a .Wav file
Replies: 5
Views: 5426

Re: Error while trying to play a .Wav file

The error text spells it out for you: the function expects string as a 2nd argument, and you gave it nothing.
by raidho36
Sat Feb 22, 2020 7:45 pm
Forum: Support and Development
Topic: Any way to get canvases to be more efficient?
Replies: 38
Views: 31702

Re: Any way to get canvases to be more efficient?

I've only just realized that Canvases just store the instructions given to them and parse them when called via the draw command Uh, no? That would be spritebatch (and technically it just combines sprite geometry into a single megasprite). Canvas is the same as the screen, except not rigidly tied to...
by raidho36
Sat Feb 22, 2020 7:34 pm
Forum: Support and Development
Topic: Variable becomes nil after passing it to another function
Replies: 2
Views: 4121

Re: Variable becomes nil after passing it to another function

You didn't use the colon notation when you called the detection function.

It's a bit complicated subject but the gist of it is that colon notation definition expects colon notation usage, same with dot notation.
by raidho36
Sat Feb 22, 2020 7:16 pm
Forum: Support and Development
Topic: Any way to get canvases to be more efficient?
Replies: 38
Views: 31702

Re: Any way to get canvases to be more efficient?

This code looks like you took Durgasoft courses a little too unironically. You can start by not using globals and not using nondescript numerical indices. Not grinding through a bunch of static data for every single tile would also help. Finally you can organize render order of your tiles by GPU dra...
by raidho36
Sat Feb 22, 2020 6:12 pm
Forum: Support and Development
Topic: Any way to get canvases to be more efficient?
Replies: 38
Views: 31702

Re: Any way to get canvases to be more efficient?

For a decent example of similar visual effect, just about any modern 2D top-down-Zelda-style game with lots of layering would suffice. Graveyard Keeper, Stardew Valley, and Undermine all come to mind as decent examples of games of the style in question. There's absolutely nothing in there that warr...
by raidho36
Sat Feb 22, 2020 6:01 pm
Forum: Support and Development
Topic: Any way to get canvases to be more efficient?
Replies: 38
Views: 31702

Re: Any way to get canvases to be more efficient?

It crossed my mind that overdraw could be problematic, but with simple 2d pixel shaders and not particularly huge overdraw factor, I don't believe that's an issue.

Can you post your project file? Cut the music though.
by raidho36
Sat Feb 22, 2020 4:20 pm
Forum: Support and Development
Topic: Any way to get canvases to be more efficient?
Replies: 38
Views: 31702

Re: Any way to get canvases to be more efficient?

So you're doing up to 20k sprites per frame, well that's pretty much nothing, my old GPU could do 100k sprites per frame without slowing down. You're clearly doing something very silly with your graphics related code.