Search found 219 matches

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

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

Yeah but he's drawing to the "canvases" only at start, so what CPU bottleneck? It's obviously CPU since he has integrated video graphics, but you get my point. I think it's the 20 4k x 4k canvases he's trying to draw. But I just want to see why he chose this over complicated method instead of everyt...
by KayleMaster
Mon Feb 24, 2020 7:30 pm
Forum: Support and Development
Topic: Any way to get canvases to be more efficient?
Replies: 38
Views: 1268

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

You're doing something terribly wrong. What are these 'layers' and why do you need 20 of them? Why are you rendering them all to canvases and then rendering each canvas instead of rendering them all to one canvas? I doubt your Spritebatch attemp is good. I'm able to draw 102400 32x16 animated tiles ...
by KayleMaster
Fri Feb 21, 2020 6:10 pm
Forum: General
Topic: LÖVE 11.3 released!
Replies: 36
Views: 92107

Re: LÖVE 11.3 released!

But it will be updated to Luajit 2.1.0 which recently became stable. No more 1-2GB limit for RAM usage!
by KayleMaster
Fri Feb 21, 2020 6:42 am
Forum: Games and Creations
Topic: Stone Kingdoms 0.2 (RTS)
Replies: 9
Views: 4519

Re: Stone Kingdoms 0.2 (RTS)

Updated to 0.2 New stuff: - Add new asset files - Add a little effect for the Tree when chopped - Fix crash when a quad doesn't have an offset - Add height map (used for the stockpile currently) - Make stockpile walkable - Granary is now functional - Shown chunks now depend on the zoom level - Chang...
by KayleMaster
Tue Feb 11, 2020 7:25 am
Forum: Games and Creations
Topic: 3D Rendering Engine in Love 2D
Replies: 3
Views: 1142

Re: 3D Rendering Engine in Love 2D

You should ask Shell32 on the discord server. He's doing some amazing stuff with 3D and may give you some tips.
by KayleMaster
Wed Jan 22, 2020 4:20 pm
Forum: General
Topic: Problems with localising variables
Replies: 5
Views: 2425

Re: Problems with localising variables

One more complication, require can only return 1 result. That's why you return a table with your results: -- bottom of Game.lua return {Game, Menu.Snake} -- in main.lua local Game = require("Game")[1] local Menu.Snake= require("Game")[2] Don't worry about require being called twice - its result is ...
by KayleMaster
Tue Jan 14, 2020 5:01 pm
Forum: Support and Development
Topic: Is there a simple way to make retro graphics render strictly within big-pixel-locations no matter what's in love.draw?
Replies: 5
Views: 834

Re: Is there a simple way to make retro graphics render strictly within big-pixel-locations no matter what's in love.dra

Lol @ rotated pixels.
If you draw at a lower resolution like nameless tee suggested, and then upscale the result to actually fit your screen, you'll be able to see the "actual" pixels. Of course nameless tee has done all that for you, so you just use that.
by KayleMaster
Mon Dec 02, 2019 3:54 pm
Forum: Support and Development
Topic: How does one debug silent crashes?
Replies: 5
Views: 1120

Re: How does one debug silent crashes?

Hah, coincidentally I also had to solve a silent crash with bitser - the buffer size was too small and overflowed causing a segmentation fault. It was painful to debug. But doesn't Lua run embedded on C/C++ (Love2d)? If so, is it possible to run love2d with the project in Visual Studio's C\C++ debug...
by KayleMaster
Sun Dec 01, 2019 8:49 pm
Forum: Support and Development
Topic: How does one debug silent crashes?
Replies: 5
Views: 1120

How does one debug silent crashes?

A.k.a. crashes to desktop without any errors. Is it possible to run it through visual studio debugger or something? Any other debuggers that might help with this? It's really frustrating when it crashes after 10-20 min of playing, and you can't determine what exactly caused it. I'm using ffi, so I t...
by KayleMaster
Sat Nov 09, 2019 8:48 am
Forum: Support and Development
Topic: Extreme error
Replies: 3
Views: 1288

Re: Extreme error

Hey, welcome to the forums!

It will be much easier for us if you just include a .love/.zip file in the post instead of copy pasting the code.
You can also embed code with the [ code ] tag which keeps indentation.