Search found 85 matches

by Sasha264
Sun Aug 23, 2020 12:17 am
Forum: Support and Development
Topic: Memory Profiling?
Replies: 27
Views: 4645

Re: Memory Profiling?

Looks really as difficult example =)
I used some existing library https://github.com/rxi/json.lua
But if I will need to parse something on my own in Lua, I will remember your advise :cool:
by Sasha264
Sat Aug 22, 2020 11:59 pm
Forum: Support and Development
Topic: Where to start?
Replies: 3
Views: 984

Re: Where to start?

Hello & Welcome! Here is article about how to write hello world on Love https://love2d.org/wiki/Getting_Started Here is youtube examples https://www.youtube.com/watch?v=Zw3sbpYIh1Q https://www.youtube.com/watch?v=yrIwFflGeyA or just search Love2d on youtube... About JS: Love2d uses Lua programming l...
by Sasha264
Sat Aug 22, 2020 11:44 pm
Forum: Support and Development
Topic: Performance and quantity of classes
Replies: 4
Views: 1369

Re: Performance and quantity of classes

By the given info I suggest that problem is inside "inheritance" mechanism. Lua does not have embedded one, and there is some different technics to implement that. Can you share code about how you implement inheritance? Maybe it contains some copying, maybe it happens every frame by some mistake. Lu...
by Sasha264
Sat Aug 22, 2020 11:26 pm
Forum: Support and Development
Topic: Make my own particle system
Replies: 3
Views: 3959

Re: Make my own particle system

Easy way: use existing particle system along with https://love2d.org/wiki/love.graphics.translate that way you can move all particles at once when player press "a" button and particles need to be moved all at once. Laggy way: do not use any particles or batches or instances, just plain draw call fo...
by Sasha264
Sat Aug 22, 2020 11:05 pm
Forum: Support and Development
Topic: Is there anything like a version manager for Löve?
Replies: 5
Views: 1550

Re: Is there anything like a version manager for Löve?

How do you manage your löve versions and projects if like me you have projects across a broad range of versions? I store required love version inside every project :megagrin: Good thing it is small. And run script looks at inside folder for love.exe, not for global installed love. Also that way it ...
by Sasha264
Sat Aug 22, 2020 10:48 pm
Forum: Support and Development
Topic: How to handle big images without killing the framerate ?
Replies: 7
Views: 1715

Re: How to handle big images without killing the framerate ?

A 7680x11264 RGBA8 texture equals ~350 MB, meaning 3.5 GB/s at 10 FPS if you draw the whole image every frame. I didn't get that calculation... Copy all texture atlas from where to where every frame? It need to be loaded in video memory once at a game start and then there will be only "copy" of one...
by Sasha264
Sat Aug 22, 2020 10:30 pm
Forum: Support and Development
Topic: How to draw color emojis with love.graphics.print()
Replies: 2
Views: 1585

Re: How to draw color emojis with love.graphics.print()

...and then using these images in Löve -- if you have a small and fixed set of emojis you want to use. But after you have images (colored) that is not so easy task to embed them inline with a regular text as that smile :o: for example. I tried to do that in my game: I want to print text like that: ...
by Sasha264
Sat Aug 22, 2020 10:14 pm
Forum: Support and Development
Topic: Trying to get the real desktop size (in pixels) on macOS and Windows
Replies: 6
Views: 1910

Re: Trying to get the real desktop size (in pixels) on macOS and Windows

HighDPI and Retina is quite a mess, really... But the future is here and we must live with that =) Personally I can not imagine my life without 4k display and 200% ui scaling on windows. And many many games and other programs and frameworks ready for that, it is a bit disappointing that Love2d still...
by Sasha264
Sat Aug 22, 2020 9:09 pm
Forum: Support and Development
Topic: Game random crash on a start
Replies: 5
Views: 1413

Re: Game random crash on a start

So, to do that I must run Love2d from source in debug mode and try to reproduce that error... Sounds hard =)
by Sasha264
Sat Aug 22, 2020 9:05 pm
Forum: Support and Development
Topic: Memory Profiling?
Replies: 27
Views: 4645

Re: Memory Profiling?

Hm... Interesting, thank you for enlightening, that was counter-intuitive for me =)