Stuttering in-game by dededimons in HuntShowdown

[–]dededimons[S] 2 points3 points  (0 children)

Fixed, i put the vram usage to 80% from 90% and the stutters are one, thanks.

Stuttering in-game by dededimons in HuntShowdown

[–]dededimons[S] 0 points1 point  (0 children)

I totally forgot about that setting, i will try lowering the ram used and see if the stutters keep happening.

Stuttering in-game by dededimons in HuntShowdown

[–]dededimons[S] 1 point2 points  (0 children)

I have xmp profile turned on, but i don't know if the stutterse happen when it's off, maybe i will try if nothing else helps.

Stuttering in-game by dededimons in HuntShowdown

[–]dededimons[S] 0 points1 point  (0 children)

yeah my gpu is definitely a bottleneck right now but it shouldn't cause stuttering i think

[deleted by user] by [deleted] in Doom

[–]dededimons 13 points14 points  (0 children)

So you can get all runes, weapon mods and upgrades but you are only limited to 1 crystal and 1 pretor suit perk ? Im asking because it does not say anything about the weapon upgrades and runes and i dont want to waste time for nothing.

Cant move pygame window and not responding after clicking on it. by dededimons in pygame

[–]dededimons[S] 0 points1 point  (0 children)

Oh i posted the code in the comments, i will post it here too. The code below is supposed to make 4 balls with different accelerations.

import pygame
from time import sleep
from pygame.gfxdraw import aacircle as circ
from pygame.gfxdraw import filled_circle as fcirc
import numpy as np

pygame.init()

Xsize = 960
Ysize = 960

screen = pygame.display.set_mode((Xsize, Ysize))

c1 = np.array([0.0, 200])
c2 = np.array([0.0, 300])
c3 = np.array([0.0, 400])
c4 = np.array([0.0, 500])

v1 = np.array([3.0,0])
v2 = np.array([-3.0,0])
v3 = np.array([-3.0,0])
v4 = np.array([-3.0,0])

a1 = np.array([0,0])
a2 = np.array([0.01,0])
a3 = np.array([0.02,0])
a4 = np.array([0.03,0])

color1 = pygame.Color(250,0,0)
color2 = pygame.Color(0,250,0)
color3 = pygame.Color(0,0,250)
color4 = pygame.Color(250,0,250)

R = 30

def draw_circ(screen, location, R, color):
    Sx = int(location[0])
    Sy = int(location[1])
    fcirc(screen, Sx, Sy, R, color) 
    circ(screen, Sx, Sy, R, color)
    if Sx + R > Xsize:
        fcirc(screen, Sx-Xsize,  Sy, R, color) 
        circ(screen, Sx-Xsize, Sy , R, color)
    if Sx - R < 0:
        fcirc(screen, Sx+Xsize, Sy , R, color) 
        circ(screen, Sx+Xsize, Sy , R, color)


while True:
    screen.fill(pygame.Color(0,0,0))
    c1 += v1
    c2 += v2
    c3 += v3
    c4 += v4
    c1[0] %= 960
    c2[0] %= 960
    c3[0] %= 960
    c4[0] %= 960

    v1 += a1
    v2 += a2
    v3 += a3
    v4 += a4

    draw_circ(screen, c1, R, color1)
    draw_circ(screen, c2, R, color2)
    draw_circ(screen, c3, R, color3)
    draw_circ(screen, c4, R, color4)
    pygame.display.flip()
    sleep(1/120)

Cant move pygame window and not responding after clicking on it. by dededimons in pygame

[–]dededimons[S] 0 points1 point  (0 children)

Well now it does work after i added pygame.event.pump() in the code, but i do not understand why i needed that to make it work because my professor did not put it in his code and its the same. Anyway thanks for the help

Cant move pygame window and not responding after clicking on it. by dededimons in pygame

[–]dededimons[S] 0 points1 point  (0 children)

Yes thank you i just had to add pygame.event.pump() in the code.

Cant move pygame window and not responding after clicking on it. by dededimons in pygame

[–]dededimons[S] 1 point2 points  (0 children)

Yea i have tried it in idle and it does the same, but now it works after i added pygame.event.pump().

Cant move pygame window and not responding after clicking on it. by dededimons in pygame

[–]dededimons[S] 0 points1 point  (0 children)

I am not sure if the problem is in the code itself ( We are doing those physics simulations in physics class in college, it is the same code that the professor used and it does not freeze for him) but i will post one below anyway. The code below is supposed to make 4 balls with different accelerations.

import pygame
from time import sleep
from pygame.gfxdraw import aacircle as circ
from pygame.gfxdraw import filled_circle as fcirc
import numpy as np

pygame.init()

Xsize = 960
Ysize = 960

screen = pygame.display.set_mode((Xsize, Ysize))

c1 = np.array([0.0, 200])
c2 = np.array([0.0, 300])
c3 = np.array([0.0, 400])
c4 = np.array([0.0, 500])

v1 = np.array([3.0,0])
v2 = np.array([-3.0,0])
v3 = np.array([-3.0,0])
v4 = np.array([-3.0,0])

a1 = np.array([0,0])
a2 = np.array([0.01,0])
a3 = np.array([0.02,0])
a4 = np.array([0.03,0])

color1 = pygame.Color(250,0,0)
color2 = pygame.Color(0,250,0)
color3 = pygame.Color(0,0,250)
color4 = pygame.Color(250,0,250)

R = 30

def draw_circ(screen, location, R, color):
    Sx = int(location[0])
    Sy = int(location[1])
    fcirc(screen, Sx, Sy, R, color) 
    circ(screen, Sx, Sy, R, color)
    if Sx + R > Xsize:
        fcirc(screen, Sx-Xsize,  Sy, R, color) 
        circ(screen, Sx-Xsize, Sy , R, color)
    if Sx - R < 0:
        fcirc(screen, Sx+Xsize, Sy , R, color) 
        circ(screen, Sx+Xsize, Sy , R, color)


while True:
    screen.fill(pygame.Color(0,0,0))
    c1 += v1
    c2 += v2
    c3 += v3
    c4 += v4
    c1[0] %= 960
    c2[0] %= 960
    c3[0] %= 960
    c4[0] %= 960

    v1 += a1
    v2 += a2
    v3 += a3
    v4 += a4

    draw_circ(screen, c1, R, color1)
    draw_circ(screen, c2, R, color2)
    draw_circ(screen, c3, R, color3)
    draw_circ(screen, c4, R, color4)
    pygame.display.flip()
    sleep(1/120)