inkeliz

Results 134 comments of inkeliz

> > **3. Why drop `js.Value`?** > > Mixing `js.Value` and custom JS is dangerous. The older patch does that quite well, but at first it works on Go 1.15...

I forcepush just to replace the Float64 to Float32, avoiding the `float64()`.

I'm not sure if that is worth it. I don't think it solves any issue: 1. It doesn't remove the need of `go.mem` (which is a [DataView](https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/DataView)). But, additionaly: 2....

> The uintptr(unsafe.Pointer()) conversions are both unsafe and creates garbage. I thought about that, but the current `syscall/js` seems to create the same garbage or more. Also, using the `func...

I'm parking the code here. The generator is very poorly written, I tried to use the `go/package` and `go/ast` but it seem every more difficult, so I basically copy my...

I can't find anything, probably next year. :P I write one small piece of code to make it easier to reproduce the problem. Since it needs the assets, [you can...

Well, I have a guess. I'm trying to make it works, but my knowledge around OpenGL stuff is minimal. The problem seems related to `TEXTURE_MIN_FILTER`. The `TEXTURE_MIN_FILTER` seems to define...

Yes, I think it's the right direction. ![image](https://user-images.githubusercontent.com/4644332/71755065-e3c12900-2e80-11ea-80d1-565a53a51d97.png) Now the image has a diferent color, but never disappear. I change the `TEXTURE_MIN_FILTER` to `GL_NEAREST_MIPMAP_NEAREST` and change the `BindTexture`. ``` func...

The last change, mentioned previously, didn't fix the issue. Instead, it makes the usage of GPU significant higher than before, from 4% to 21%, of GPU usage, using an AMD...

The workaround that I found is using an "power of 2". The texture must be 128x128 (instead of 100x100). The zoom must be also power of 2, which means that...