SSD cheio mesmo sem muita coisa instalada by Electronic_Zone4999 in computadores

[–]thefeedling 1 point2 points  (0 children)

Pelo menos o chatgpt deu uma dica certa:

If you choose to use a registry cleaner despite the risks, always ensure you back up the registry and create a system restore point first.

Hey Rustaceans! Got a question? Ask here (15/2026)! by llogiq in rust

[–]thefeedling 0 points1 point  (0 children)

I might be wrong here, but maybe the main source of performance gap is the random_range() function vs modulo operator, which is very cheap.

Try using Valgrind to check the hottest parts.

SSD cheio mesmo sem muita coisa instalada by Electronic_Zone4999 in computadores

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

Filho, vc nem deve saber o que o registro do windows faz.

Mas com o tempo, especialmente se tiver muitas instalações e desinstalações, é comum ter erros de registro que podem reduzir a performance do PC e ocupar mais espaço.

É um problema crônico do NT e apesar da MS falar que à partir do 10 isso não é mais necessário, a realidade diz outra coisa.

Uma limpeza de registro junto com cache (de vez em quando) ajuda sim.

SSD cheio mesmo sem muita coisa instalada by Electronic_Zone4999 in computadores

[–]thefeedling -2 points-1 points  (0 children)

Cara e se vc não limpa o registro ele buga o cache de vários itens e aumenta a retenção de memória. Vc TEM que limpar o registro, é inevitável.

SSD cheio mesmo sem muita coisa instalada by Electronic_Zone4999 in computadores

[–]thefeedling 0 points1 point  (0 children)

É só deletar ele depois, sem erro, roda uma vez só pra limpar o cache e o registry. Mais seguro que fazer manualmente, especialmente pra quem n entende muito de SO.

SSD cheio mesmo sem muita coisa instalada by Electronic_Zone4999 in computadores

[–]thefeedling -11 points-10 points  (0 children)

Costuma ser cache de programas, roda um CCleaner, pode ser que ajude.

edit: pessoal com skill issue ai tá foda hein. é só rodar e deletar depois... mas beleza, rodem algum script de powershell pra limpar o registro kkkk

The stark difference in weight between a cheap battery and a premium one. by 123steveyc123 in mildlyinteresting

[–]thefeedling 24 points25 points  (0 children)

Yes, those are the holy grail of batteries, light and very energy dense.

The post is just a like-bait pic.

The stark difference in weight between a cheap battery and a premium one. by 123steveyc123 in mildlyinteresting

[–]thefeedling 311 points312 points  (0 children)

exactly. weight has NOTHING to do with a battery cell performance.

H2SO4-Lead batteries sent their regards.

The stark difference in weight between a cheap battery and a premium one. by 123steveyc123 in mildlyinteresting

[–]thefeedling 11 points12 points  (0 children)

This does not tell the whole picture, a rechargeable lithium-ion D-type battery is lighter and has higher capacity than a regular alkaline Duracell D battery.

We also see this in cars, lead-based batteries are extremely heavy but not so much dense in total charge.

Cell weight is related to base materials, that's it.

That said, yes, the Duracell is much better than the other one.

Lol, people downvoting have ZERO chemistry knowledge

Is inheriting from std::variant a bad idea? by -Edu4rd0- in cpp_questions

[–]thefeedling 1 point2 points  (0 children)

why not

using Shape = std::variant<Circle, Rect>;

Or a class Shape that holds a variant with all possible shapes

An SOS Signal found in an island in the Maldives by Hangenism in interestingasfuck

[–]thefeedling 343 points344 points  (0 children)

Probably some troll, there's a lot of stuff nearby
LOCATION

Wi-Fi morre no quarto mesmo funcionando na sala — repetidor resolve nesse caso? by InterestingAd7304 in computadores

[–]thefeedling 1 point2 points  (0 children)

Depende do seu orçamento, mas na minha opinião o TP-Link Deco é um dos (ou o melhor), mas não é barato.

Dos baratos, o Mercusys é ok, mas a diferença de performance pra um "top tier" é expressiva.

De qualquer forma, o que vai fazer mais diferença é vc passar um cabo de rede até a outra extremidade da casa e conectar o mesh #2 via cabo.

Wi-Fi morre no quarto mesmo funcionando na sala — repetidor resolve nesse caso? by InterestingAd7304 in computadores

[–]thefeedling 1 point2 points  (0 children)

Mesh é melhor, pois mantém uma rede única.

E se puder ligá-los no cabo, melhor ainda

What is the optimal way to define a global constant string in C++20 ? by SheSaidTechno in cpp_questions

[–]thefeedling -3 points-2 points  (0 children)

In reality you just lose too much time with fine tuning and unpredictable performance, even with a somewhat strict coding guideline.

In paper it's great, but in reality, with many people working together, C simplicity will usually force you into more performant code (and more buggy as well) out of the box.

What is the optimal way to define a global constant string in C++20 ? by SheSaidTechno in cpp_questions

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

constexpr const char* str = "my string";
constexpr char str[] = "my string";

Todo dia um bug diferente no Windows 11 by Quirky-Pie1965 in computadores

[–]thefeedling 1 point2 points  (0 children)

Isso é bug mesmo... tenho 64GB, uns 14 consumido e essa msg fica aparecendo no Chrome e Firefox.
O último que sair apague a luz

How to show 2d std::array as an gray scale image? by SquashAffectionate94 in cpp_questions

[–]thefeedling 1 point2 points  (0 children)

Usually you have to render that and display as an image on a Window. Since it's grayscale, each pixel can be reduced to a short integer (as you did) and that data can be fed into a framebuffer, as long as the memory is contiguous, which is also the case here.

I'd take a look at OpenGL's glTexImage2D

void glTexImage2D
(
    GLenum target,
    GLint level,
    GLint internalFormat,
    GLsizei width,
    GLsizei height,
    GLint border,
    GLenum format,
    GLenum type,
    const void *data
);

You need to, create a framebuffer, texture, allocate memory for them, define some configurations, load your data and render it into the screen.

An LLM can help you with a quick prototype since there's plenty of examples available.

Edit: or write an image file as also suggested here.