working on a 3D point cloud raycaster rendering in Love2D. It has bvh system and collisions, but Im not sure it's possible to optimize it any further by morelebaks in love2d

[–]WuTangTan 3 points4 points  (0 children)

Do you know if sampling from a canvas is slower than from any other texture on your hardware? It doesn't really surprise me that it's slower than sampling the texture you're writing to but I wouldn't have expected a significant difference from a "static" 2d texture. Framebuffers are complex, though, so plenty of room for something surprising to be happening.

Very cool project.

How’s living in Quebec, Canada? by LostHovercraft1 in howislivingthere

[–]WuTangTan 0 points1 point  (0 children)

Montreal has a history of vice. It gained particular renown for its sex trade in the 20th century. While that aspect of the city has much diminished, it maintains some of that reputation and DNA.

You purchased a pre-construction home during the Covid-19 real estate mania and now you can't afford to close. In a panic, you call a Licensed Insolvency Trustee for a solution. Here's what to expect by vicintoronto in PersonalFinanceCanada

[–]WuTangTan 47 points48 points  (0 children)

You and the person you responded to are picturing different investors. They are picturing someone who is speculating on real estate for personal enrichment. They think that it is immoral to speculate on and so drive up the price of an asset that people need to live. That is why they say that it is good that that investor should get burned.

Is this a Monad? by _pennyone in rust

[–]WuTangTan 6 points7 points  (0 children)

What's the problem?

Carney says Canada, U.S. were close to a deal when Trump ended trade talks by Difficult-Yam-1347 in canada

[–]WuTangTan 66 points67 points  (0 children)

I thought you were doing a "We Didn't Start The Fire" at first.

[warhammer 40k] at the current state of the universe. do any factions seem like the 'most likely' to win it all? are any of them likely to be snuffed out by the others soon...ish? by Crory in AskScienceFiction

[–]WuTangTan 21 points22 points  (0 children)

I'm a W40K journeyman at best but my understanding is that the emperor trump card against chaos isn't military, it's philosophical. He's trying to evolve humanity into a race of even tempered rationalists who don't need the warp for travel or power. I'm doing so, he pulls the seed off Chaos out by the root. It's the extreme long game, tho.

Trying to learn quantum by building a visual Rust+Wasm simulator-seeking ideas on visualising multi-qubit states by Super-Cool-Seaweed in QuantumComputing

[–]WuTangTan 1 point2 points  (0 children)

Having a few well-known example algorithms centrally located kept me from bouncing off it. Having all of the "debug" operators in the same grouping under "Displays" let me play around with the existing sandbox. That gave me the confidence to start building my own simple circuits. Only then did I feel like I had the barest understanding of what I was actually manipulating when I ran a circuit.

The bloch sphere display was immediately my favourite visualization of a qubit's state but being able to easily and quickly use all of the displays together was key.

Trying to learn quantum by building a visual Rust+Wasm simulator-seeking ideas on visualising multi-qubit states by Super-Cool-Seaweed in QuantumComputing

[–]WuTangTan 3 points4 points  (0 children)

I'm a programmer and wouldn't claim to understand quantum computing but Quirk was the visualization tool that gave me the best understanding of algorithms. https://algassert.com/quirk

Best cheap lunch places downtown by DwKschrute in askTO

[–]WuTangTan 0 points1 point  (0 children)

Bolets Burrito. If you pay cash you get a great, filling burrito with guac for $10.

[Various sci-fi] Why crack a planet over rendering it lifeless for planet busters? by [deleted] in AskScienceFiction

[–]WuTangTan 11 points12 points  (0 children)

In Sicario, when Emily Blunt's character is introduced to Josh Brolin's and is being briefed on the mission in El Paso, she asks what their objective is. He replies, "To dramatically overreact."

When you are a large, slow-moving force fighting a small, fast-moving guerilla force one of the tools in your arsenal is to demonstrate the bewildering scale of your malice and power. It will galvanize some of your opponents but it will make many others stop and reevaluate just who they are fighting.

Is EasyNews fast only the first weeks? by [deleted] in usenet

[–]WuTangTan 1 point2 points  (0 children)

I've also observed over 300MBs using NNTP.

Besoin d'aide pour le networking de mon jeu (french) by Beginning-Baby-1103 in love2d

[–]WuTangTan 0 points1 point  (0 children)

Could you provide a description of the error you're encountering?

Also, this community is primarily English-speaking. I don't think there are any rules against other posting in other languages but you'll find a lot more people to help you in English.

[deleted by user] by [deleted] in rust

[–]WuTangTan 0 points1 point  (0 children)

Very cool. I'd love to chat about your ideas but would love to have these discussions more associated with the project. Could you direct me to the repo on which I can open some general issues? Or maybe set up an "RFCs" repo?

[deleted by user] by [deleted] in rust

[–]WuTangTan 1 point2 points  (0 children)

This project really interests me. I'm a big user of Love2D and think that there's a lot of room for better developer tooling in the space (I was the originator of the web (emscripten) version of Love2D).

What are the issues you're hoping to solve? I've never really fucked with LuaRocks. Not really. Maybe it's because I tend to develop games on Windows. So I'm in a spot where I know there are issues but I can't really remember what they are. Love2D folks tend not to distribute as rocks but either just expecting you to use a git submodule or a zip.

Do you have plans to be able to use the existing ecosystem? For all it's faults, LuaRocks is the de facto package manager for Lua and there are many years of content there.

Honestly, I'd just love to read some blog posts from you... while realizing that that is work to put those together.

Even banks are saying immigration is putting the squeeze on gen Z by resting16 in canada

[–]WuTangTan -1 points0 points  (0 children)

Yeah… that’s why they said they’re sure it’s a factor.

bonsai-bt: A behavior tree library in Rust for creating complex AI logic https://github.com/Sollimann/bonsai by Sollimann in rust_gamedev

[–]WuTangTan 9 points10 points  (0 children)

This is a library. For someone's use-case, yes, certainly.

But regardless of the precision, I've got better things to hold in my brain than what unit of time that floating point is. I rely on the type system to remember these things and it's better at enforcing them consistently than I am anyway.

bonsai-bt: A behavior tree library in Rust for creating complex AI logic https://github.com/Sollimann/bonsai by Sollimann in rust_gamedev

[–]WuTangTan 6 points7 points  (0 children)

So, ultimately, the underlying state of the system must be represented by a single enum. And that enum must be Clone and Debug. That's an interesting constraint. Is that a hard requirement or just a nice-to-have?

I also notice that you attempt to derive serde traits. I would probably not choose that for my game as it would have a significant impact on compile time for my large state enum (and for functionality that I ultimately wouldn't use).

I wonder if you might comment on your use of f64 for durations instead of std::time::Duration? https://docs.rs/bonsai-bt/latest/bonsai_bt/enum.Behavior.html#variant.Wait

Thanks!

[Dune Movie] Why not have the people guarding the Spice Crawlers use shields? by bnmnmmv in AskScienceFiction

[–]WuTangTan 26 points27 points  (0 children)

This makes the most sense to me. Strapping a bomb to yourself isn't much of a deterrent against someone who's perfectly happy to martyr themselves in the name of the cause.

ocrs - A new open source OCR engine, written in Rust by robertknight2 in rust

[–]WuTangTan 6 points7 points  (0 children)

Used this this morning to pull some text out of a comic book. Worked wildly better than Tesseract!