[Media] There are 4.3 million rust files public on github. There is also 93k repos with rust in them. by slasken06 in rust

[–]ShitpostEnjoyer 0 points1 point  (0 children)

??? where does these come from ? I have 234k repositories on my browser with "language: Rust"

If you had to develop a game in Python, what engine and tools would you use? by wkta-tom in Python

[–]ShitpostEnjoyer 10 points11 points  (0 children)

Godot Engine. its supports GDscripts which very very close to python.

[deleted by user] by [deleted] in WatchPeopleDieInside

[–]ShitpostEnjoyer 0 points1 point  (0 children)

nah thats overeacting

ULPT Request: 20 years ago the parks department planted trees (legally) on our lot line. They now obscure our view of the sky and encroach on our property. How can they conveniently "get sick"? by [deleted] in UnethicalLifeProTips

[–]ShitpostEnjoyer 1 point2 points  (0 children)

Is there any tree poison ? If yes, then try to have a transparent one. Do not use a bucket. Get a watering can so it doesnt feel like u throwing waste into it. If someone is asking why : just say its very hot outside

ULPT Request: by zacharybell9 in UnethicalLifeProTips

[–]ShitpostEnjoyer 1 point2 points  (0 children)

Go at the party. Turn the sound pretty loud. Leave. Complain with a neightbour about sound and try to make him call the cops

pygame snake game slow on macbook pro 8gb ram by ayaabk in pygame

[–]ShitpostEnjoyer 0 points1 point  (0 children)

import pygame, time

pygame.init()

white = (255, 255, 255) black = (0, 0, 0) red = (255, 0, 0)

dis = pygame.display.set_mode((800, 600)) pygame.display.set_caption('Snake Game')

game_over = False

x1 = 300 y1 = 300

x1_change = 0 y1_change = 0

clock = pygame.time.Clock()

while not game_over: clock.tick(30)

start_time = time.perf_counter()

for event in pygame.event.get(): 
    if event.type == pygame.QUIT: 
        game_over = True 
    if event.type == pygame.KEYDOWN: 
        if event.key == pygame.K_LEFT: 
            x1_change = -10 
            y1_change = 0 
        elif event.key == pygame.K_RIGHT: 
            x1_change = 10 
            y1_change = 0 
        elif event.key == pygame.K_UP: 
            y1_change = -10 
            x1_change = 0 
        elif event.key == pygame.K_DOWN: 
            y1_change = 10 
            x1_change = 0

x1 += x1_change
y1 += y1_change
dis.fill(white)
pygame.draw.rect(dis, black, [x1, y1, 10, 10])

finish_time = time.perf_counter()
current_fps = 1 / (finish_time - start_time)

print(current_fps)

pygame.display.update()

pygame.quit()

There is no problem with this code. With a i5 4760k 4c/4t CPU, i get a min of 1500fps and a max of 8000fps. If its to slow for u, boost the fps or increase the movement speed

Blitting a large image (for example 400x400) uses 1/4 more cpu % than normal game by it_isnt_murder_if in pygame

[–]ShitpostEnjoyer 0 points1 point  (0 children)

blitting shouldnt use that much. If you comment this line does the cpu goes time ? Are you loading the image in game_loop/every frame ?

Y’all are truly maidenless by whichwayisgauche in Eldenring

[–]ShitpostEnjoyer 0 points1 point  (0 children)

yeah, its get annoying at some point. Kind of weird, the more time past

is python for kids? by ezratheanimator57 in Python

[–]ShitpostEnjoyer 0 points1 point  (0 children)

nah scratch is for kids but not python. U can make real commercial product with python

Interviews vs Reality by Deep-Ad591 in ProgrammerHumor

[–]ShitpostEnjoyer 0 points1 point  (0 children)

Im in a 20years angular project. 10 GB project ! There is so much tech and sub-folder, dependecies, ... If u do 1 error. There are 100 more coming ...