Search found 37 matches

by Imagic
Sat Jan 02, 2021 2:37 pm
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 30488

Re: Optimization Stuff

We can't just say that "Lua is slow by design" or "C is fast by design". There is a lot of work involved to make something fast, from the highest to lowest levels, from compiler developers to game developers. And being fast is not the only relevant thing; in fact, most of the cod...
by Imagic
Sun Dec 27, 2020 1:38 am
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 30488

Re: Optimization Stuff

I want to add something which seems to be lacking when speaking about optimizations and not the regular not subtle "you should not think about optimization". Optimizing is complicated. It's not just about the complexity of the optimization in itself, it's also about the heuristic behind it...
by Imagic
Tue Dec 15, 2020 5:39 pm
Forum: Games and Creations
Topic: Some LÖVE experiments.
Replies: 2
Views: 4477

Some LÖVE experiments.

These experiments may be of interest to others; they feature interesting algorithms. Space Partitioning: Sparse Loose Grid Code: https://github.com/ImagicTheCat/love-experiments/tree/master/space_partitioning_grid YXKKsaigrBI Quadtree Code: https://github.com/ImagicTheCat/love-experiments/tree/maste...
by Imagic
Fri Nov 27, 2020 5:44 pm
Forum: Libraries and Tools
Topic: ELProfiler - statistical/sampling profiler
Replies: 0
Views: 3739

ELProfiler - statistical/sampling profiler

Until LÖVE bundles LuaJIT 2.1, which has a built-in profiler, this library can be used as an alternative. I tried it on Conway's game of life available on the forum by just adding those lines at the top of the main.lua: local Profiler = require("ELProfiler") Profiler.setClock(love.timer.ge...
by Imagic
Wed Oct 28, 2020 6:45 pm
Forum: Libraries and Tools
Topic: ELScheduler - scheduler/timer library
Replies: 1
Views: 5810

Re: ELScheduler - scheduler/timer library

Major bug fix: more here, fixed in 1.1.

This bug can result in out-of-order trigger of timers.
by Imagic
Tue Oct 20, 2020 3:07 pm
Forum: Libraries and Tools
Topic: Luaseq - Asynchronous helper library
Replies: 4
Views: 6783

Re: Luaseq - Asynchronous helper library

I had interesting names for the library, but all were already taken. Similar is better than identical, at least computers understand the difference. Also, changing a project's name requires more than a little inconvenience.
by Imagic
Sat Aug 01, 2020 12:39 pm
Forum: Support and Development
Topic: How to handle big images without killing the framerate ?
Replies: 7
Views: 2503

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

It doesn't seem to be a lot to draw each frame, but it depends on your GPU. I would use an ArrayImage for this kind of sequences. About the compressed format. I tried to convert a PNG image into a DXT5 format with an online converter tool. Is it normal that the DXT5 version of the image got a bigger...
by Imagic
Fri Jul 17, 2020 11:19 pm
Forum: Libraries and Tools
Topic: love-DPBR - Deferred Physically Based Rendering library
Replies: 9
Views: 9440

Re: love-DPBR - Deferred Physically Based Rendering library

Update:
- Lot of small improvements: bug fixes, clarification of some ideas, better API.
- Background/blend passes.
- Ambient / indirect lighting (constant light and IBL).
- Ambient occlusion map.
- More/improved examples.

by Imagic
Sun Jun 14, 2020 8:34 pm
Forum: Libraries and Tools
Topic: MGL - Mathematics for Graphics in pure Lua
Replies: 0
Views: 3093

MGL - Mathematics for Graphics in pure Lua

This is a library for graphics computation (vector, matrix, 2D, 3D, etc.) which may interest people here. It has a simple API similar to GLSL or GLM, so that computation can be expressed in a straightforward way. It has genericity, making it useful for atypical computation (ex: vec10 ?). It can be p...
by Imagic
Mon May 18, 2020 12:45 am
Forum: Support and Development
Topic: Incentive for DPI scaled units instead of pixel units ?
Replies: 5
Views: 1847

Re: Incentive for DPI scaled units instead of pixel units ?

You've always been able to use pixel units when needed through love.graphics.getPixelDimensions and friends, and to explicitly set the DPI scale of any asset (images or canvases or fonts) to whatever you want. Yes, but it increases the overall complexity for no benefits in my case. you will need to...