Search found 9 matches

by Spessman
Sun Jan 17, 2016 5:11 pm
Forum: Support and Development
Topic: Huge map and memory use
Replies: 11
Views: 5302

Re: Huge map and memory use

You need help using structs? No, thanks. But i have another problem. I did it. Now my map splits into chunks, writes to files and can load. And my function have a memory leak. --map - 1000x1000x1, chunk_size - 100 function map_splitOnChunks(map, chunk_size) local mapsW, mapsH = 1000/chunk_size, 100...
by Spessman
Fri Jan 15, 2016 8:03 am
Forum: Support and Development
Topic: Huge map and memory use
Replies: 11
Views: 5302

Re: Huge map and memory use

Thanks, guys. But i have another problems... If the map is procedurally-generated... Yes, but map have procedurally-generated structures and if generator started build room in one chunk, how continue building in another chunk? I mean there is not a single houses. There is massive continuous complex ...
by Spessman
Thu Jan 14, 2016 12:54 pm
Forum: Support and Development
Topic: Huge map and memory use
Replies: 11
Views: 5302

Re: Huge map and memory use

It is not so important. You can run this code and receive the same result. map = {} for x = 1, 1000 do map[x] = {} for y = 1, 1000 do map[x][y] = {} for z = 1, 100 do map[x][y][z] = 1 end end end I think i must split map on chunks and save them to files. But i'm worry about this part may be bulky. 1...
by Spessman
Thu Jan 14, 2016 10:49 am
Forum: Support and Development
Topic: Huge map and memory use
Replies: 11
Views: 5302

Huge map and memory use

Hi everyone. I create map with 300x300x10 tiles and i faced with big problems. My game crashes if i try exceed 250x250x10 limit. And I decided to check processes. ~1 GB memory used... So there i really need help. Maybe split this map on chunks and save their in files? But how i can do this? And how ...
by Spessman
Fri Jan 08, 2016 12:43 pm
Forum: Support and Development
Topic: Pack of noob questions
Replies: 2
Views: 1950

Re: Pack of noob questions

You can use HardonCollider for polygonal collision detection. Thanks. Very useful. If you know another one library or algorithm , i want to take a look on it. if you imagine the cursor being a very tiny circle colliding with the other shapes. Very smart. Thanks. Maybe you have another variant? Just...
by Spessman
Fri Jan 08, 2016 9:40 am
Forum: Support and Development
Topic: Pack of noob questions
Replies: 2
Views: 1950

Pack of noob questions

Good os.date() to all. I have some noob or stupid questions about love2d and lua. I do on love2d a big(rpg) game, i know this bad choice for "my first game", but me need some great experience. So... 1. My game is big and i want to create controller for all mobs. Each mob have function life...
by Spessman
Thu Dec 24, 2015 2:57 pm
Forum: Support and Development
Topic: How to draw a lot of objects fast in limited area?
Replies: 4
Views: 1689

Re: How to draw a lot of objects fast in limited area?

Why don't you want to use a spritebatch? It's too cumbersome for me. And spritebatch need to update for a time i think. Therefore best way for me - direct draw You could probably check wether an object is offscreen by doing some simple coordinate checks. In area 8000-10000 objects. How i can do it ...
by Spessman
Thu Dec 24, 2015 8:35 am
Forum: Support and Development
Topic: How to draw a lot of objects fast in limited area?
Replies: 4
Views: 1689

How to draw a lot of objects fast in limited area?

Hello there. I have map 100x100 tiles. I'm limited tiles to draw for 15x15 tiles and do it trough Tile.contents (this table contains objects on tile) layer by layer. I'm also constantly moving... But i have some problems. Objects with free per-pixel coordinates and i don't want to bind they to tiles...
by Spessman
Sun Oct 11, 2015 2:44 pm
Forum: Support and Development
Topic: lighting without shaders or canvas
Replies: 4
Views: 2275

lighting without shaders or canvas

Hello there,
My PC do not support shaders or canvas(Opengl 1.4).
How can i do lighting without this? At the moment i use stencil.
So, whether there is a other way or tools?