Search found 137 matches

by Xii
Wed Dec 30, 2020 10:39 pm
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 48751

Re: Optimization Stuff

Well, I admit it may depend on the type of game, but then you're limiting yourself to games that don't need anything beyond constant strings. Some of your examples are more trivial than others, but yes I'm starting to see what you mean; a lot of work sidestepping a non-issue. Fair enough. I count m...
by Xii
Sun Dec 27, 2020 7:45 pm
Forum: Support and Development
Topic: Getting a server for a love2d game
Replies: 31
Views: 39012

Re: Getting a server for a love2d game

Löve still doesn't have inbuilt support for SSL (and so, HTTPS); that'll make this a bit harder to do. Ohh yeah, damn, that's right. There were a couple of creative solutions around the forum for that, e.g. a Steamworks library using FFI, and an operating system -dependent method. But yea that's an...
by Xii
Sun Dec 27, 2020 7:29 pm
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 48751

Re: Optimization Stuff

Lua's garbage collector is incremental Oh hey, that's good info. Didn't know that. Mitigates the issue a little bit. Still, the collector has to collect an equal amount of garbage produced - sooner or later. The longer the game runs, the sooner that moment approaches. handle strings as tables of nu...
by Xii
Sun Dec 27, 2020 12:13 am
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 48751

Re: Optimization Stuff

Since LOVE uses luaJIT, we can make giant games without this stuff tripping us up Can you provide an example of a giant game made in LÖVE without stopping the garbage collector? understanding that disabling [the garbage collector] has a cost too that may be very high I don't... get what you're sayi...
by Xii
Sat Dec 26, 2020 7:25 pm
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 48751

Re: Optimization Stuff

That's terrible advice. Disabling memory management and implementing your own strategy/heuristics is a recipe for disaster. It's nearly impossible to produce zero garbage in non-trivial interactive games. If you can't do it, that's fine; but just because you lack the understanding of programming to...
by Xii
Sat Dec 26, 2020 7:13 pm
Forum: Support and Development
Topic: Getting a server for a love2d game
Replies: 31
Views: 39012

Re: Getting a server for a love2d game

You need to either run the server yourself, or rent one. To run it yourself: have a computer at home online 24/7, and run your server there. It doesn't need any screen, mouse, or keyboard (after setting it up), and can be a cheap one like a Raspberry Pi. To rent one: pay for a cloud VPS (virtual pri...
by Xii
Sat Dec 26, 2020 12:45 am
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 48751

Re: Optimization Stuff

You shouldn't leave the garbage collector enabled in a game, at all. You should collectgarbage("stop") and manually collectgarbage() only when appropriate (like level transitions). You should create all the tables you're going to need during initialization, and not create any during gamepl...
by Xii
Sat Dec 26, 2020 12:35 am
Forum: General
Topic: What do you use to design your game concepts?
Replies: 4
Views: 8834

Re: What do you use to design your game concepts?

What I do is play many different games, watch other people play many different games, casually, professionally and speedrunning; study what games other devs have made and how. 99% of my free time is spent this way. Then, I write down notes on my desktop/phone. Every single game idea I have, I write ...
by Xii
Thu Dec 24, 2020 10:54 pm
Forum: Support and Development
Topic: Question about LuaJIT and FFI
Replies: 10
Views: 12403

Re: Question about LuaJIT and FFI

If you want to climb the performance mountains, you must wear measuring boots. In other words, if you are thinking about performance, you have to write and run performance tests, and compare how different solutions really perform. Human intuition is notably fallible on this particular task. I know ...
by Xii
Tue Dec 22, 2020 1:42 am
Forum: Support and Development
Topic: Is it possible to replay a box2d world?
Replies: 3
Views: 2719

Re: Is it possible to replay a box2d world?

According to the Box2D official website , the engine is deterministic on the same system only, not across systems. What does this mean? It means you can replay a world on the same computer as it was originally stored. However, any change to that computer (replacing the CPU, installing a different OS...