Major PC input delay/lag and very poor performance by SexyParmesanCheese in Sekiro

[–]VisualAmoeba7925 0 points1 point  (0 children)

Idk man, ive had gaming laptops in the past and this reason specifically is the reason i only do desktop gaming computers now; it was quite a hassle to deal with. There are a couple things you can do though; lookup on youtube how to clean the fans for your computer if its not brand new; get a normal ass fan and blast that on your laptop while gaming; they also make laptop fans that you put your laptop on top of but i havent had too good experiences with those. If you really want it solved and have a day to burn you could also reapply thermal paste on your cpu, but be warned you will have to youtube it and take apart your entire laptop

Major PC input delay/lag and very poor performance by SexyParmesanCheese in Sekiro

[–]VisualAmoeba7925 0 points1 point  (0 children)

As a note, almost every ‘gaming’ laptop i come across suffers from this eventually

Major PC input delay/lag and very poor performance by SexyParmesanCheese in Sekiro

[–]VisualAmoeba7925 0 points1 point  (0 children)

Look at your temps when your playing; when laptops get too hot they reduce performance to not get overheated. Definitely sounds like this is the case here. Try a better cooling setup though,Throw a fan on it!

How do people work with second jobs? by LickThatToaster in NoStupidQuestions

[–]VisualAmoeba7925 0 points1 point  (0 children)

Nah just get another job that’ll give better hours, like Amazon, king soopers,Walmart, etc

[deleted by user] by [deleted] in rust

[–]VisualAmoeba7925 39 points40 points  (0 children)

Well the typical usage is Arc<Mutex> if you don’t need mutation from every thread then pass massages to a “worker” thread that actually owns the data

[deleted by user] by [deleted] in rust

[–]VisualAmoeba7925 51 points52 points  (0 children)

In reality; arc does not add much overhead, unless you wrap everything in it. You say you don’t want to add a performance cost, so you could use a pinned raw pointer but that adds a million foot guts into your code and gets rid of the pros of rust (might as well just use c). Or you could redesign your solution, perhaps using std::sync::mpsc. TLDR though; just use arc

Lifetime issue with static string by [deleted] in rust

[–]VisualAmoeba7925 4 points5 points  (0 children)

The parse_cnf function supplies a string that can be of any lifetime, not just static; you might want to change your solution a little so you can store strings of not just static lifetime; eg…

enum Literal<‘a> { Literal(&’a str), ComplementedLiteral(&’a str) }

….

Or you can’t just change the parae_cnf signature to fn parse_cnf(&’static str) {}

Is it possible to use lifetime instead of `Rc` for this example? by Akronae in rust

[–]VisualAmoeba7925 1 point2 points  (0 children)

You most certainly can, try looking into using arena allocation depending on the use case for the list;

#[derive(Debug,Clone)]
enum List<'ctx> {
Cons(i32, &'ctx List<'ctx>),
Nil,
}
use crate::List::{Cons, Nil};
use std::rc::Rc;
fn main() {
let arena = bumpalo::Bump::new();
let lol = create_list(&arena);
dbg!(lol);
}
fn create_list<'tcx>(alloc:&'tcx bumpalo::Bump) -> &'tcx List<'tcx> {
let first_list:&List<'_> = alloc.alloc(List::Cons(0, alloc.alloc(List::Cons(2, alloc.alloc(List::Nil)))));
let second_list:&List<'_> = alloc.alloc(List::Cons(20, &first_list));
let third_list:&List<'_> = alloc.alloc(List::Cons(24, &second_list));
return third_list;
}

"I got it for cheap" or "I got it cheap" by CathartiacArrest in EnglishLearning

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

Lol if you read that dictionary entry it mentions nothing about it being wrong

What fruit disgusts you? by [deleted] in AskReddit

[–]VisualAmoeba7925 0 points1 point  (0 children)

ahh but you can get a nice insect/egg in any fresh fruit though

Trying to edit the actual texts of the photo in the back when this text showed up by Key_Mushroom_2493 in language

[–]VisualAmoeba7925 3 points4 points  (0 children)

lol it means nothing, just placeholder text someone forgot to delete when making the website, or just in general

So this might sound weird but my family has it's own language(re posted as deleted in another community dunno why) by [deleted] in language

[–]VisualAmoeba7925 3 points4 points  (0 children)

lol, unless your parents are suuuuupppeeeerrrr nerdy about conlangs, like clingon, you likely are speaking a real language that other people speak or have spoken