Answer the question
In order to leave comments, you need to log in
A laptop. What to put? SSD / 8 GB RAM?
Good afternoon.
There is a basic gaming laptop (purchased 03/01/20)
Asus tuf fx505DT
R5-3550H
Gtx 1650
120Hz
8 gb 2400MG
1 TB HDD
There is also a free slot for 2 bar op. and a free slot for an m.2 SATA 3 SSD
Problem: slow speed, sometimes freezes, very low FPS in games of the middle segment.
GTA V - First 20/30 minutes go to 80 fps then proces to 50/40 fps, at this point : o. Memory loaded at 95~%
CPU and HDD at 100% and graphics card also at 100% (graphic settings are ultra-low in the game, the memory of the card is loaded at 1100~/4000 mb.
World of warcraft (legion) completely low settings, the game runs at 50-90 frames, long loading screens, sometimes for a minute or more.
Others, according to the latest games, didn’t even try, so the picture was clearly visible.
The essence of the question is what should I buy for it, there are small savings, but what do I need first of all: a 240 GB SSD or an 8 GB RAM? I look forward to answers and advice. Thank you.
Answer the question
In order to leave comments, you need to log in
If the disk is SMR, then the SSD will significantly improve the situation, because this SMR is so flawed that even sitting in the browser is a real torment. Well, accordingly, faster disk - faster swap file speed.
SSD first.
Games that you described - 8 GB of RAM there for the eyes.
Yes, and the games are old, for such a laptop is not a problem.
It does not critically rest on memory, although it certainly does not hurt to add.
But the disk is generally without questions in the first place.
I think I need to add more memory! Ideally, take a drive and check the die!
In the main loop, you get the time, compare it with the previous value, and if it has changed, for example, by 60ms, then increase the variable.
time.sleep(60) is a very bad idea. With a high load, there will be lags, because every moment of the cycle we fall asleep for 60ms. If we have a calculation of everything and the rendering takes 10ms, then one iteration will be 10+60=70ms.
Still okay. If the calculation and rendering takes 100ms, then 160ms will be noticeable to the user.
You need to sleep wisely. You determine how long one iteration will take you (when I wrote, I took 30ms). You remember the start time of the iteration (i.e. at the beginning of the cycle), at the end of the cycle you get the time again. You calculate the difference, and subtract it from the time you took. Fall asleep at this time:
import time
frame = 30 # время выполнения одного прохода (итерации) цикла
update_data_time = 900 # Время за которое увеличивается переменная
while True:
start = time.clock() # время начала выполнения
что_то_делаем()
if data_time<=0: # Пора обновлять переменную?
data_time = update_data_time # сбрасывает флаг обновления
data += 1 # увеличиваем переменную
else: # не пора
data_time -= frame # уменьшаем флаг обновления
end = time.clock() # время окончания выполнения
delta = end-start # вычисляем время выполнения фрейма
time.sleep(frame-delta) #спим
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question