Search found 2486 matches
- Sat Feb 20, 2021 12:50 pm
- Forum: Support and Development
- Topic: Memory leak - Something I'm missing ?
- Replies: 8
- Views: 507
Re: Memory leak - Something I'm missing ?
Removing the draw calls while keeping the canvas gets rid of the problem. Drawing a rectangle right after the tile makes it a lot slower, but also gets rid of the problem. Therefore, I suspect this has to do with autobatching. Unfortunately, it can't be turned off (but it would have a huge performan...
- Fri Feb 19, 2021 5:34 pm
- Forum: General
- Topic: Midi format music distortion
- Replies: 12
- Views: 5766
Re: Midi format music distortion
I guess the real question is, is there a real use case for MIDI in videogames these days?
- Fri Feb 19, 2021 1:37 am
- Forum: Support and Development
- Topic: Hand-made fake 3D - problems with rendering
- Replies: 3
- Views: 402
Re: Hand-made fake 3D - problems with rendering
It looks to me that what your code is missing is clipping to the near plane. That's something OpenGL does and your code doesn't, and I suspect that the lack of clipping may be causing that effect.
- Thu Feb 18, 2021 5:20 pm
- Forum: Support and Development
- Topic: How would one check if a square is within a circle?
- Replies: 11
- Views: 715
Re: How would one check if a square is within a circle?
Something like: For corner in pairs corners do If distance(corner, center) > radius then Return true -- at least one corner is out of circle Yes, or equivalently: If distance(corner, center)^2 > radius^2 then Return true -- at least one corner is out of circle By cancelling the square root in dista...
- Thu Feb 18, 2021 12:12 pm
- Forum: Support and Development
- Topic: How would one check if a square is within a circle?
- Replies: 11
- Views: 715
Re: How would one check if a square is within a circle?
TLDR: find the length of the diagonal form the center of the square to one if its corners - then check the two shapes as if they are both circles That's not so precise as checking all four corners. Here's an example where it reports an incorrect result: http://www.formauri.es/personal/pgimeno/temp/...
- Thu Feb 18, 2021 8:56 am
- Forum: Support and Development
- Topic: How would one check if a square is within a circle?
- Replies: 11
- Views: 715
- Thu Feb 18, 2021 8:50 am
- Forum: Support and Development
- Topic: Does LuaJit compile functions called inside of a corountine?
- Replies: 3
- Views: 294
Re: Does LuaJit compile functions called inside of a corountine?
There are actually many more functions that will stop a trace, not just coroutine stuff. In LuaJIT 2.0, that includes calls to Löve functions. See the list of NYI instructions: http://wiki.luajit.org/NYI
- Thu Feb 18, 2021 12:44 am
- Forum: Support and Development
- Topic: Does LuaJit compile functions called inside of a corountine?
- Replies: 3
- Views: 294
Re: Does LuaJit compile functions called inside of a corountine?
LuaJIT is a tracing JIT compiler which compiles loops. When it encounters an instruction that it can't compile, like a coroutine function , the trace is aborted. That goes for LuaJIT 2.0; version 2.1 can do "trace stitching", which consists of resuming traces after a NYI instruction is executed. I d...
- Wed Feb 17, 2021 9:48 pm
- Forum: Libraries and Tools
- Topic: Gspöt - retained GUI lib
- Replies: 169
- Views: 95869
Re: Gspöt - retained GUI lib
Do you have some other suggestion that keeps backwards compatibility? In my opinion, it's a feature not worth keeping nor making backwards compatible, but... If you're gonna do it, you'd need to add a bool that uses the default functionality on false/nil, and not increment the colors for parented b...
- Wed Feb 17, 2021 8:53 pm
- Forum: Support and Development
- Topic: Help with GUI
- Replies: 21
- Views: 3357