#programming

1 messages · Page 147 of 1

true hemlock
#

and it worked

olive sable
#

oh, the fallback has not been touched since i stole the code form the vulkan tutorial lmao

true hemlock
#

Quack, 34965, Linux NixOS, Genuine Intel 0000 (i9 13900 Engineering sample) | RTX 4070 super

#

now, imma boost this shit

olive sable
#

is it on the 4070 or the igpu?

true hemlock
#

4070s

olive sable
#

huh

true hemlock
#

nah im kidding

#

its on igpu

olive sable
#

ah lmao

true hemlock
#

slight boost with cache optimization

#

now good fucking luck beating my score

#

because im gonna optimize this shit like crazy

full karma
#

I have a laughable idea

#

Program a slot machine

full karma
#

It’ll be a basic one running on RNG but meh, it’ll be mine

glad path
#

am I allowed to modify the program for the fps challenge

midnight sigil
#

I'm sitting here tediously installing Alpine just to run a stupid vulkan program

glad path
#

in case, say, its not possible to run on a certain device

#

at all

true hemlock
#

@olive sable btw which ones the file that changes frame buffer settings again

olive sable
#

im 7th in my own program, damn. i knew the 5950x wasnt a gaming cpu and that its getting slightly old but damn

olive sable
olive sable
#

the only one diverging from that is iggly

true hemlock
#

someone with a 14900KS is gonna wipe the floor with my ass

#

actually

#

i should probably try with dgpu

olive sable
#

ok i made the latest version work on windows

#

i cant be bothered to make #ifdefs in the file and in the compiler, so im putting this shit in a fork

opaque wharf
#

We should invite Shiro here

#

We NEED to make the mods involved again

olive sable
#

tbh its not even that hard its only 1 file that would need #ifdefs and the makefile flags need to change for windows, but i really cant be bothered

olive sable
patent walrus
olive sable
#

i made a vulkan

#

and its really fast

#

but we're seeing who can make it the fastest

#

rn the main competition is just hardware lmao

#

quack has 35000 fps

patent walrus
#

i see, so i just compile and run and see how many frames i get

olive sable
#

if you want

#

its faster on igpu so if you have one i set it up to use that. otherwise it will fallback to dgpu

true hemlock
#

vani i know you'll compete with your 9950x or whatever

#

wait till i build elvyn's 7950x then we can compete SMadge

olive sable
#

wait till i get my new.. wait i cant afford all that

#

this 5950x is supposed to last me another 9 years

true hemlock
#

right the nixos i have rn isn't persistent

#

fuck

#

oh

#

sheet

glad path
#

Can I use a diff program that does the same thing since my grqphing calcukator doesnt support vulkan

olive sable
#

well that kinda defeats the point of this doesnt it?

glad path
#

Kinda

olive sable
glad path
#

It does have its own 3d projection functions builtin

olive sable
#

thats cool but i havent even gotten to that ye, its jsut a triangle rn

glad path
#

Not quite the same but still

true hemlock
nocturne olive
#

It reported it was running on the 4070Ti in the terminal

true hemlock
#

oh?

#

kay

#

hold on

olive sable
#

i cant test how to compile for mac so i cant help on that, but it would be funny. idk if the faster single-core will outweigh the heavier os tho

olive sable
true hemlock
#

i'll use my 4070 super

patent walrus
#

i'm using chatgpt to change the code to at least run on my mac trolley

#

love u gpt-5

true hemlock
olive sable
#

hmmm, mac os

#

the forbidden 40k fps?

glad path
#

does it just render a triangle

olive sable
#

yes

#

but, it does so really fast

glad path
#

how so

opaque wharf
#

Btw Sam, I can resize it just fine evilWheeze

patent walrus
#

insanity

opaque wharf
olive sable
glad path
#

is it anything special

olive sable
glad path
#

Like im expecting a specific fast drawing algorithm type thing

#

hard to describe ehat im thinking

opaque wharf
#

Triangle are gpu primitive

glad path
#

But i hqve something in mind

glad path
opaque wharf
#

So I'd assume it doesn't really use any other algorithm that the GPU use

olive sable
#

the triangle itself is not the impresive part, its the cpu an gpu overhead being gone.

#

the gpu doesnt even spend much time rendering

true hemlock
olive sable
#

i barely get 30% usage on my 3090

true hemlock
glad path
#

My graphing calculator is at 25%

#

Rip

opaque wharf
#

Let the drag race begin

olive sable
true hemlock
glad path
#

Ok im gonna have to add something to measure fps which will drop fps

#

Ironically

olive sable
#

4096 frames in flight??????

patent walrus
#

brew install molten-vk vulkan-loader vulkan-tools

#

oopsies

#

wrong window

#

i am STRUGGLING rn

true hemlock
#

LMFAO

olive sable
true hemlock
#

yeah

glad path
#

Ehat are thr dimensions of the triangle

true hemlock
opaque wharf
olive sable
#

the screen goes from -1 to 1, and the triangle's coordinates are

vec2 positions[3] = vec2[3](
    vec2(0.0, -0.5),
    vec2(0.5, 0.5),
    vec2(-0.5, 0.5)
);
nocturne olive
olive sable
#

it very well could. i have 4x16 3600 but its cl18 and i have an amd memory controller

glad path
#

What color is the triangle

#

In Hex or rgb

amber fractal
#

I'd think FF0000

olive sable
#

its pure red

patent walrus
#

different error means progress, go gpt 5 u can do this evilCheer

true hemlock
#

unfortunate

olive sable
#

huh

#

okay

true hemlock
#

im tightening the timings hold on

olive sable
#

if i could ask an oracle anythign, i would ask what the deciding factor is

nocturne olive
true hemlock
#

you wanna me to try it on my threadripper

amber fractal
#

Quack, if you got the binary for 4096 frames would you mind posting it?

true hemlock
#

okay hold on

amber fractal
#

Want to test on my system as well

olive sable
#

this is getting fun

patent walrus
#

beggars cant be choosers

nocturne olive
#

Anyone got an iGPU preference build?

#

Just in case it's even possible to run it on my iGPU which has not been behaving well on Linux

patent walrus
#

WHEN I SWITCHED FROM DISCORD TO THE TRIANGLE IT SHOWED 5000 FPS THEN TANKED TO 300

olive sable
true hemlock
#

LMAO

patent walrus
#

it showed this for like a frame then tanked back down to 200-300 ????????

hoary lion
amber fractal
#

I got sinilar on KDE

#

41k when overdrawn

olive sable
#

its either a bug with SDL get time() lagging when changing focus. or its the os

patent walrus
olive sable
#

🔺

nocturne olive
opaque wharf
#

Finally someone is lower than me on the leaderboard evilWheeze

olive sable
glad path
#

The calcukator claims to have drawn the triangle in 0ms

olive sable
#

but i guess i need to change that???

glad path
#

Ofc

nocturne olive
amber fractal
#

Can you do a CLI argument?

olive sable
#

im still in windows so not me

nocturne olive
amber fractal
#

Understandable

nocturne olive
#

Well, anyone got such build I can borrow?

glad path
#

Ok guys i have my submission

opaque wharf
#

I have a build but I linked it for my system libraries

glad path
#

6315 fps on an HP Prime G2

true hemlock
#

whole server scheming to beat my score rn

olive sable
#

decent

#

last place but decent

amber fractal
glad path
#

Note that I had to throw in extra code to measure the fps

olive sable
#

did it not do so itself?

glad path
#

I had to write the program in HPPPL

olive sable
#

huh, interesting

glad path
#

probably the most underdocumented language ever

#

also clunky

amber fractal
glad path
#

+= doesnt exist in that language

#

You gotta type foo:=foo+1

nocturne olive
#

So when can I have a build with which I can try to run on iGPU?

hoary lion
#

h what??

glad path
#

Its a really annoying language to use

#

But it does work

amber fractal
nocturne olive
olive sable
#

well im making the gpu being a comandline arg code rn, but i ont have a build cuz im still in windows

nocturne olive
hoary lion
#

can't even find it on google

amber fractal
#

I may as well kill two birds with one stone

nocturne olive
amber fractal
#

Try this one @nocturne olive

#

It may or may not have it enabled

nocturne olive
#

Terminates instantly, tries to use dGPU

amber fractal
#

bwaa

olive sable
#

this fine?

nocturne olive
olive sable
#

the shaders folder

amber fractal
#

Classic shader error

olive sable
amber fractal
#

I'm glad I went though all of the debugging for it

nocturne olive
olive sable
#

typo

glad path
#

My code for reference

olive sable
#

you get the vision

glad path
#

Gets cut off but its #FF0000 and a closed parenthesis

olive sable
#

ill need to pass a variable then instead, this is gonna take a litle bit longer then

amber fractal
#

The urge to hop back into cachy to get this to compile

#

But I'll just deal with the nix path issues mysekf

olive sable
#

i dont think ive ever done command args in c++ before, lemme google

glad path
#

i hate discord markdown

#

So much

amber fractal
glad path
#

-# ok

olive sable
glad path
#

i must find a way to improve calculator fps

amber fractal
#

The games begin neuroHypers

nocturne olive
#

I guess I'll just wait for a build

#

Unless you want me to go in and change the code I can already compile

amber fractal
nocturne olive
#

What was the prioritize iGPU line again

true hemlock
#

guys

#

you won't fucking believe this

amber fractal
glad path
true hemlock
#

GOOD FUCKING LUCK BEATING MY SCORE

amber fractal
glad path
#

Better fully reboot it ig

nocturne olive
#

Whuhhhh

true hemlock
#

yeah, dgpu boost it hard

patent walrus
nocturne olive
#

How is that even possible?

amber fractal
olive sable
#

what in the hell

true hemlock
#

if you don't believe me, hold on

glad path
#

Btw if yall have a graphing calculator i encourage you to beat my score with it

olive sable
#

i bleieve you

#

but what witchcraft did you use to achieve this?

true hemlock
amber fractal
#

I was just thinking if you buffed frames in flight enough you could compensate for pci bandwidth

true hemlock
#

exactly

#

wait

nocturne olive
true hemlock
#

i think i haven't set that

glad path
#

Hold on am i allowed to resize the window

olive sable
#

his args are on screen, enhance, enhance, sharpen, copy, paste

glad path
#

Because i can get a better score if so

true hemlock
#

should i stream

#

just to prove all of these are legit

amber fractal
#

I'd watch 100

true hemlock
glad path
#

Can I make my triangle smaller?

olive sable
#

sure

#

here the size doesnt really matter

#

its a diffrence of maybe 100 fps for full 1080p

true hemlock
#

iggly predicted this

glad path
#

Ok ill make a 1px triangle then

olive sable
#

that isnt a triangle then but sure

true hemlock
#

except without the threadripper pro max ultra 16900KFX5D

glad path
#

a 4px triangle then

nocturne olive
#

Getting a few more frames this morning

amber fractal
nocturne olive
#

But it refuses to run on iGPU

olive sable
amber fractal
#

dgpu finally is making a return

olive sable
nocturne olive
true hemlock
#

streaming

nocturne olive
glad path
#

21423 fps

#

=)

true hemlock
#

setting frame buffer to 4096 actually lowers it

#

huh

olive sable
mortal cloud
glad path
#

22809 fps actually

true hemlock
#

or it might be because im streaming

nocturne olive
glad path
#

On my graphing calculator

olive sable
true hemlock
#

okay its probably because im streaming

nocturne olive
olive sable
true hemlock
#

setting to 3 tanked my score back to 30K

amber fractal
olive sable
true hemlock
#

huh its lower now

olive sable
#

how much is your bp using?

glad path
#

Is 22809 fps good for a 4px triangle on my graphing calculator

true hemlock
#

segmentation fault on 16384

glad path
#

Does it still count since i lowered the size of the triangle dramatically

amber fractal
#

4096

true hemlock
#

okay, i shouldn't make clean

nocturne olive
#

You changing this? From what I can tell for me it doesn't do anything or the compiler is not doing its job

true hemlock
#

oh

#

16384 gives me slightly more

olive sable
#

lets do the math

true hemlock
#

65536 doesn't give me more

#

okay

#

i still beats everyone despite streaming it LMAO

nocturne olive
# amber fractal yep

Well, it does not appea to do much of anything, maybe doesn't even recompile the app

glad path
#

wait i can use a 3px triangle

true hemlock
#

let me stream on my phone instead

glad path
#

.-.

true hemlock
#

wait i gotta uh put my "disguise" on incase reflection decided to dox me

olive sable
#

at 50000fps, each frame 0.02 ms, so 16384 frames ahead makes you run 327.68 ms behind

nocturne olive
#

Not viable for a rhythm game

true hemlock
#

went up to 48K after i quit stream

olive sable
#

in return for the less frame render latency we have play latency

nocturne olive
#

So is changing the frames in flight value meant to actually recompile the app? I don't see it doing any of that

olive sable
#

ye it does

#

or well, you should

nocturne olive
#

I see no compile commands being run

#

It also seems to have literally no effect

olive sable
#

changing the source code doesnt make it recompile ye

nocturne olive
#

How do I get it to recompile then? I already tried deleting the compiled stuff

olive sable
#

in the github there is a makefile

nocturne olive
#

Deleting the compiled stuff just compiled something that does the exact same thing

nocturne olive
#

I'm using make run for this

olive sable
#

ye that shoudl be fine

nocturne olive
#

Though it had to be modified a little to get it to actually build

olive sable
#

thats normal probably

amber fractal
#

votes to move?

nocturne olive
#

Either way, how do I make it pick up the change?

true hemlock
#

52524 FPS

#

lmfao

amber fractal
#

nice!

nocturne olive
#

How even are you getting anythiing that high?

true hemlock
#

whole server in shambles trying to beat that

true hemlock
olive sable
#

at this point we're just reducing the frame latencty by making the frames always render late

true hemlock
#
  • used my dgpu
olive sable
#

there is no rule against it so ill allow it, but im not gonan be able to optemize anything irl like that

true hemlock
#

as long as it renders a triangle?

olive sable
#

yep

#

thats the rule

true hemlock
#

aight gotcha, i got an idea

glad path
#

Does it need to actually render

olive sable
#

yes

true hemlock
#

yes

#

must be vulkan

glad path
#

Or can i draw it to G1

olive sable
#

otherwise i have 6548324581 fps

#

i dont remember the exact number with it was 6 billion something

glad path
#

otherwise i get a nonexistent fos boost nvm

true hemlock
#

must render a triangle in vulkan

glad path
#

No difference if i dont draw it

true hemlock
#

that's the rule

glad path
#

i cant use vulkan on an hp prime

true hemlock
#

@olive sable btw have you updated scores, superbox also hit 35K

olive sable
#

im not lol, im coding rn. its not going fast since im easily distracted

true hemlock
#

aight

hollow spruce
#

REMOVE ALL ASSETS and do RENDERING NOTHING
(GIVE FPS )

olive sable
#

there are no assets besides that single triangle in the shader

#

and rendering nothing just gives you 6 bilion fps

#

thats no fun

hollow spruce
#

What game ure are rendered

olive sable
#

not really a game, jsut a triangle

true hemlock
#

its a vulkan shader

nocturne olive
true hemlock
#

just a renderer

#

i find it funny that record holder is an engineering sample chip neurOMEGALUL

hollow spruce
nocturne olive
#

Whar

true hemlock
#

one day someone show up with the 60K and imma die

hollow spruce
#

Remove gui from windows (x squad - )

glad path
#

my 22809 fps on a graphing calculator is still funny lol

patent walrus
#

ngl i give up getting anything better than like 6000 fps on macos, i don't understand what the hell is going on with this platform so im just gonna like try my desktop PC

amber fractal
#

One hardcoded nix path later and I'm compiling finally

opaque wharf
#

I love when #programming comes to stream it is just text editor evilWheeze

true hemlock
#

MacneurOMEGALULS

amber fractal
hollow spruce
glad path
true hemlock
#

i was pretty damn sure i could beat superbox, BUT NOT BY THIS MUCH

glad path
#

Don’t have my laptop on me rn :/

#

What’s the leaderboard rn?

amber fractal
#

Broke out of a bad habit

nocturne olive
#

Well, I can't even make it compile with an updated magical setting

olive sable
#

i broke something, idk what happened. this is 99% sure not a record but a bug

true hemlock
#

damn fuck

nocturne olive
#

Whuh

true hemlock
#

i got beaten

olive sable
#

this is on windows

#

its jsu timpossible

#

something must be broken

nocturne olive
#

No way Windows is beating Linux, so it must be a bug

true hemlock
#

is it fluctuating?

opaque wharf
olive sable
nocturne olive
true hemlock
olive sable
#

no, it jsut counts each frame double

true hemlock
#

huh

opaque wharf
true hemlock
#

wanna know what's even more impressive

#

the fact that im using this which adds up even more pcie latency

hollow spruce
#

FPS: 80.2688

nocturne olive
nocturne olive
#

Everyone else is getting in the thousands

true hemlock
#

fps cap, probably gsync

hollow spruce
true hemlock
#

oh

nocturne olive
#

Oh so mobile kinda sucks

olive sable
#

i dont get what its doing, im on 70k fps now AquaCry

glad path
#

How’d you run that on a phone

true hemlock
#

...maybe i should try windows

glad path
#

Am i missing something

true hemlock
#

@olive sable can you share me the windows source code

olive sable
glad path
olive sable
#

this is with it broken

nocturne olive
#

So does anyone have any idea why the frames in flight param does absolutely nothing at all?

true hemlock
nocturne olive
#

No, I mean it doesn't even recompile

true hemlock
#

oh

olive sable
#

if you make it really low it will use the minimum that vulkan says your gpu allows +1, and the higher it gets , the less improvmeemnt increasing gives

true hemlock
#

that issue

#

try compiling with lower numbers

glad path
#

Wait if i buffer my frame and blit it to the screen

nocturne olive
#

No matter if I set it to 3 or 1024 the performance is the same and no compile commands are run

glad path
#

Is that like allowed

true hemlock
#

idk why it happened

#

but computers are weird af

olive sable
nocturne olive
#

I did make run with 3 and it did nothing still

true hemlock
#

duh

#

hold on

nocturne olive
glad path
#

Fuck i almost bent my screen

olive sable
#

i made the makefile, it should exist

nocturne olive
#

clear doesn't exist

amber fractal
#

Okay thank you for not picking llvm gpu

patent walrus
#

make clean

olive sable
#

oh

#

im stupid

#

my bad

true hemlock
#

set it to 7,make clean, make run, set it higher, do not make clean and do make run

nocturne olive
#

Does it just have so little impact that it barely changes the FPS? I only have 34K now with it set to 3

true hemlock
#

it depends on your latency

#

but it does boost up a bit for people that used dgpu

true hemlock
#

huh

#

try setting it to 3

#

make clean

#

then make run

#

then do whatever and do not make clean afterwards

nocturne olive
#

I think now it finally compiled with a new value
1024, under 30K FPS

true hemlock
#

lmao

amber fractal
#

I'm getting 27k atm, laptop

#

let me make the laptop undead rq

olive sable
#

i might have an idea why im getting 70k fps now in windows, but idk if im jsut being delsuional

#

lemme try the same thing in linux in a bit

true hemlock
#

inb4 its actually legit

amber fractal
#

30k due to discord being active before

#

Classic

true hemlock
#

everyone hitting 30K now

#

lmao

amber fractal
#

I was already at 30k

true hemlock
#

i can already feel superbox is hitting 40K soon

olive sable
#

when i got my records from before i was pkilling my whole system

nocturne olive
#

So anything above 7 does absolutely nothing or makes the framerate worse, 2048 and up crashes

true hemlock
#

odd

olive sable
#

i geuss 2048 is your gpu's max then

true hemlock
#

it worked on 16384 for me

olive sable
#

you have a diffrent gpu

true hemlock
#

actually imma see what's the max i can go with

gritty dust
nocturne olive
#

You have a weird record breaking 4070 super, I just have an average 4070Ti

glad path
#

Got 23500 with 1px rendered in buffer

amber fractal
#

It got overran by normies, I was in there earlier

olive sable
#

for 1 pixel at that point we're better of eith cpu rendering i think

nocturne olive
#

Is there even any optimizations I can apply at this point other than just overclocking my hardware?

olive sable
#

i have 1 singular idea

#

but give me a minute

#

this --use-igpu arg isnt working

amber fractal
#

I'm joining another vc

true hemlock
#

35K on iGPU, 52K on dGPU

olive sable
amber fractal
#

@gritty dust join us

olive sable
nocturne olive
#

Well, I just have no idea how to improve anything from here

gritty dust
true hemlock
glad path
#

The calculator does use cpu rendering as you might expect lol
Since it’s a calculator… and has no gpu

#

Still surprised i got 23k with it

nocturne olive
#

I wonder if it would be possible to get this onto my 3090, though the latency would probably be higher

true hemlock
#

(AVX or similar)

glad path
#

I don’t remember the specs

nocturne olive
#

Well, either way, I have run out of ways I can think of to increase FPS

glad path
#

See what happens

olive sable
#

welp, i now know why --use-igpu isnt working. i forgot i dont have one

olive sable
glad path
#

The emulator is faster than hardware calculator

gritty dust
#

I kind of want to get into rendering with Vulkan and stuff tbh because I haven't really learned that yet lol

glad path
#

dont question my obsession with doing stupid things to my calculator

#

I already fragmented its memory so i should prolly chill (running bad apple did that)

olive sable
#

its not that hard, most of the vulkan stuff in the other files are init so you dont have to touch that. the mainloop is most of the work in optemizing

true hemlock
#

someone drugged him NeuroD

glad path
#

Optimizing*

olive sable
#

my pc doesnt like rendering disocrd while its doing wha ti says is 70k fps in vulkan

#

so i couldnt see

true hemlock
#

yeah im getting beaten

#

o7

glad path
#

Im curious if its possible to get more than 23k on a graphing calculator
Im genuinely curious

olive sable
#

hmm, interesting

patent walrus
#

tearing the fabric of reality

true hemlock
#

is that why

olive sable
#

the right one isnt actually being rendered, its jsut an afteriamge

true hemlock
#

huh

olive sable
#

lemme test this in linux if the 70k fps is real or if its windows

gritty dust
olive sable
olive sable
olive sable
#

but ye to be honest jsut use a profiler

#

aight time to go into linux

#

bye

gritty dust
nocturne olive
#

I have no idea if there is even any way for my system to get more than 35K FPS with this, it seems to just cap out around that range and never go higher

olive sable
#

i gitpushed the 70k fps windows repo in the windows branch

gritty dust
#

btw Iggly I usually have a mic Im just... on my phone lol it's 2am

true hemlock
olive sable
#

Oh its 8am here, but i dont need sleep, i need frames

true hemlock
#

@nocturne olive what's your score again

nocturne olive
#

35K or so, peak I believe is something like 35 600

olive sable
#

Oh i didnt git push

#

I just commited

amber fractal
olive sable
#

Lemme go back to windows

#

For fucks sakes lmao

#

Now that i rebooted i can see if the double fps was a glitch actually

true hemlock
#
# Leaderboard

|# | Name     | FPS   | OS            | CPU              | GPU                            |
|--|----------|-------|---------------|------------------|--------------------------------|
|1.| quack    | 52958 | Linux NixOS   | 13900 (ES Q0L4)  | RTX 4070 Super                 |
|2.| superbox | 35600 | Linux Mint    | 12700K           |  RTX 4070 Ti                   |
|3.| Iggly    | 30573 | linux CachyOs | Z1 Extreme       | AMD Phoenix                    |
|4.| Shuni    | 27158 | Linux NixOS   | 7950X            | AMD Raphael (integrated)       |
|5.| konii    | 23141 | linux NixOS   | 7600X            | AMD raphael (integrated)       |
|6.| Iggly    | 18677 | Linux CachyOS | i7-1260p         | Xe Graphics (integrated)       |
|7.| Sam      | 18153 | linux CachyOs | 5950x            | RTX 3090                       |
|8.| toast    | 17000 | linux NixOS   | 5900x            | RTX 5070 ti                    |
|9.| unkomp   |  9458 | linux Arch

anyone else?

amber fractal
#

I got scores to update

olive sable
#

Thanks quack

amber fractal
#

I'll make a pull request for mine

olive sable
#

Aigh, 70k fps mayhaps???? is pushed

gritty dust
#

what do I gotta do to get in on this

olive sable
#

Ill give a neorowelldone to anyone who finds the potential bug causing this

olive sable
#

My repo

gritty dust
gritty dust
#

It's 2am I need frames

amber fractal
#

same braincell

gritty dust
#

Hold up Iggly I gtg to my PC discord brb

olive sable
#

I used to be happy with my 18k fps in cachy bit now that i have 70k in windows its just sad

glass flower
#

tink how do i compile this? do i need to change the sdl and vulkan paths?

olive sable
#

Probably

true hemlock
#

.....

#

MY NIXOS

#

IS IN BALANCED MODE

olive sable
#

On windows you do, on linux you dont i think

true hemlock
#

I FORGOT TO SET PERFORMANCE

gritty dust
#

SAM I hate you didnt make a cmake for this

olive sable
#

The multithreading on windows is diffrent from the one in linux, its giving me issues and is posseblemy the reson windows got faster

olive sable
#

Im not gonna make shit i wont use

gritty dust
#

bro hates me

olive sable
#

Its 8am, let me be rude

amber fractal
#

I had a blip of 65k

hoary lion
#

sam do you even sleep

olive sable
#

Sometimes

true hemlock
#

wont fucking believe this

olive sable
#

Im listening

amber fractal
olive sable
true hemlock
#

im kidding its still at 52K ish

olive sable
true hemlock
#

just less likely to dip below 52K

olive sable
#

Quack you son of a bitch KEKW

amber fractal
#

Fricking troll

true hemlock
amber fractal
#

52K neuroMonkaOMEGA

true hemlock
#

sam wtf

nocturne olive
#

Why are you using default resource monitor? Use btop

true hemlock
#

why?

nocturne olive
#

btop is better

true hemlock
#

its just a usb nixos session

patent walrus
#

WSL Ubuntu
Selected GPU: llvmpipe (LLVM 15.0.7, 256 bits)

nocturne olive
#

Look at how much better this is

olive sable
hoary lion
#

awa

olive sable
#

Whats wrong abou that one?

true hemlock
#

find a usb stick

patent walrus
#

idc i used wsl because its funny

#

this is the new doom

midnight sigil
#

what is wrong with those l and L neuroSob

amber fractal
true hemlock
#

install linux there and boot from there

amber fractal
patent walrus
#

im not goin for a high score ngl im just running it on things for shits n giggles

olive sable
#

So did someone try recreating the 70k fps yet on windows?

#

Or at least double checking my code so im not delusional

nocturne olive
#

I did not, but I'm wondering if any of quuck 's optimizations are reproducible

true hemlock
#

i'll do later

hoary lion
#

can someone help me set this up

patent walrus
#

i'm gonna try and build it on windows

hoary lion
#

im going to run this on 2x5090

hoary lion
#

hopefully this is going to get me the lead

olive sable
#

There is a windows branch in the repo

#

Use that one

nocturne olive
hoary lion
true hemlock
#

the only thing i changed on sam's code is one of the fallback that made me used gsync for some reason

true hemlock
nocturne olive
#

That's crazy

#

All of that was UEFI settings?

true hemlock
#

and i still boot the whole nixos in a usb drive btw

amber fractal
true hemlock
#

imma return in few hours just to see people beating the shit outta my score

olive sable
true hemlock
#

(you 14900KS owners, fuck you 😄)

olive sable
#

You still have better hardware and if the scores improve i will gitpush

#

So it dont matter what i do youll be higher

true hemlock
#

i wonder what will i hit on my 14600KF

patent walrus
nocturne olive
#

Early 14th gen moment

#

Well, I guess my options for getting more frames is either overclocking/finetuning UEFI settings or just nothing

true hemlock
#

i wonder if i can push it harder

nocturne olive
#

I wonder if optimizing my system to run the triangle as fast as possible would make NeuroSynth faster

#

CPU inferring a vocal synthesizer is a bit slow

hoary lion
olive sable
nocturne olive
olive sable
#

I didnt know my lack of sanity was contagious

nocturne olive
#

Silly

#

I just don't want to wait 10 minutes for every change for my song to render

true hemlock
#

right

hoary lion
#

like

true hemlock
#

@olive sable how do you make it compile static again

hoary lion
#

I got shit ton error on windows

nocturne olive
hoary lion
#

wow

#

how silly

#

not using cuda

nocturne olive
#

True

#

Apparently it uses MS's ONNX library and that's why

hoary lion
#

ah

#

makes sense

olive sable
glass flower
#

Awkward the program just crashes for me

olive sable
hoary lion
#

its too fast to handle

olive sable
#

You need the shaders folder in root

olive sable
glass flower
#

pog wait that worked

olive sable
#

Holy

nocturne olive
#

On my GPU I was able to run the thing at real-time speeds

patent walrus
#

waiting for SDL3 to load up so i can build it on windows ReallyInnocent

glass flower
olive sable
nocturne olive
#

Now what hardware may that device have?

glass flower
#

Nyehehehe perfect screenshot.. 74k

#

annySipping i have a ryzen 9 5950X (16 cores 32 threads) and a rtx 4080

true hemlock
#

aight

nocturne olive
#

We need someone with a weaker Windows machine to test it

true hemlock
#

i switch my statement

patent walrus
#

OH

#

i have that shitty windows laptop

true hemlock
#

(you windows users, fuck you 😄)

patent walrus
#

errrrrrrrrrmmmmm i dont have a windows build yet i'm still trying to figure out how to piece it all together

#

c++ is not my strong suit

nocturne olive
#

I'm very much assuming the insane FPS is either a bug in the code or an oddity with how Windows handles times

glass flower
#

kek btw you should probably mention somewhere that you need to manually download glm and put it in the src directory

nocturne olive
#

No need for that on Linux

glass flower
olive sable
#

Oh ye i forgot

true hemlock
olive sable
#

It uses glm for the code i was making for the vertexbuffer. But that code isnt even used yet

true hemlock
#

okay so uh

#

how do you compile it on windows again

olive sable
#

The windows github fork

true hemlock
olive sable
#

And then just do make, with the needed packages

#

Those are honestly the worst part of windows

#

You'l prob need to change include locations too in the makefile

nocturne olive
#

Windows: go and track down 30 random zip files
Linux: sudo apt install

true hemlock
#

i'll try compiling both build and compare

glass flower
#

here is a breakdown what i had to do:

  • install glm into the src directory from github.
  • change the paths in the makefile using search/replace to point where i have vulkan and sdl3 located.
  • then make all
  • (i also had to compile sdl manually and make a folder lib/x64 in the sdl directory. but that depends on how you install sdl )
  • (also had to put the sdl3.dll next to the vulkan.exe file)
patent walrus
#

im a little dumb, how do i build this in visual studio
there isnt an sln or any kind of like, startup item
do i have to make a solution/project myself

nocturne olive
#

You need to use CLI compilers

olive sable
#

I dont use visual studio so i have no clue

true hemlock
#

hi shuni

rough bloom
amber fractal
#

as someone in here is making

true hemlock
nocturne olive
#

Now let's see Shuni destroy the triangle rendering score with some magic trick (it would be funny)

rough bloom
#

somehow I'm still 4th

#

I expected to drop further

olive sable
#

Something that worked on windows doesnt work on linux

#

Fuck

#

it snot baout performance, but about globals

true hemlock
#

lmao

rough bloom
opaque wharf
#

How to diff large arbitrary JSON without exhausting my memory?

patent walrus
#
PS C:\Users\Vanilla\source\repos\very-fast-but-very-bad-code-vulkan> make
clang++ -x c -O3 -Wall -IC:\VulkanSDK\1.4.321.1\Include -IC:\SDL3-3.2.20\include -march=native -flto -fomit-frame-pointer -c src/volk.c -o output/release/volk.o
process_begin: CreateProcess(NULL, clang++ -x c -O3 -Wall -IC:\VulkanSDK\1.4.321.1\Include -IC:\SDL3-3.2.20\include -march=native -flto -fomit-frame-pointer -c src/volk.c -o output/release/volk.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [makefile:14: output/release/volk.o] Error 2

?????

olive sable
#

oh no im jsut stupid and forgot to edit the makefile args passing through

opaque wharf
#

Large is > 1MB

true hemlock
#

7950x is better than 13900 non K

#

LMAO

olive sable
rough bloom
patent walrus
#

i have the VulkanSDK and SDL3-3.2.20 in my C:\

olive sable
#

hmmm

patent walrus
#

maybe clang++ doesnt exist

#

how the fuck do i get clang++ on windows

true hemlock
#

my 2dpc ddr4 that is supposedly rated 3600 cl19 boots at 3200 cl14

amber fractal
olive sable
#

oooohhhh, i remember, it would find the .dll while compiling but not while running, so i just copied the sdl.dll into the folder of the project

amber fractal
#

I had to manually do so

glass flower
#

tink don't you get clang through mingw?

olive sable
glass flower
#

you need to put the sdl3.dll in the output directory YES

#

otherwise it complains it can't find the dll when launching

#

tho while compiling that isn't needed

olive sable
#

i couldnt make it find the folder by itslef

#

i would fix it if i knew how

true hemlock
olive sable
#

oh

glass flower
true hemlock
#

timings too tight

olive sable
#

i killed quacks pc with my dogshit code

#

o7

#

ok im getting segmentation fault, core dumped when doing make run ARGS="--use-igpu"

#

thats how i know it works

#

oh ye thats the command for that once i gitpush it ok

true hemlock
#

did i brick my pc

#

fuck

olive sable
glass flower
#

scrajj i think your ram is just broken

true hemlock
#

maybe CL14 is too tight yeah

olive sable
#

ussualy you can reset the bios by either a button on fancy mobo's or shorting 2 pins

#

so not bricked probably

patent walrus
#
PS C:\Users\Vanilla\source\repos\very-fast-but-very-bad-code-vulkan> make run
clang++ -O3 -Wall -DNDEBUG -I./src -IC:\VulkanSDK\1.4.321.1\Include -IC:\SDL3-3.2.20\include -DSDL_STATIC -DSDL_MAIN_HANDLED -std=c++23 -march=native -flto -fomit-frame-pointer -fno-rtti -fno-exceptions -ffast-math -o output/release/vulkan.exe output/release/main.o output/release/vk_frames.o output/release/vk_command.o output/release/vk_device.o output/release/vk_sync.o output/release/volk.o -fuse-ld=lld -LC:\VulkanSDK\1.4.321.1\Lib -LC:\SDL3-3.2.20\lib\x64 -lvulkan-1 -lSDL3 -lkernel32 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lversion -luuid -ladvapi32 -lsetupapi -lshell32 -ldinput8
lld-link: error: could not open 'SDL3.lib': no such file or directory
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

where do i get one of these

true hemlock
#

it won't boot

#

no actuallt

#

cl14 is fine on nixos

glass flower
true hemlock
#

but somehow not on windows

true hemlock
#

what

patent walrus
#

oh i need the vc.zip okay

#

i was not using the devel zip

amber fractal
patent walrus
#

maybe doing this after midnight is not a bright idea

olive sable
#

then just copy the .dll into the folde rof the project, cuz otherwise it cant find it for some reason

patent walrus
olive sable
#

84K is insane

#

i stil dont get what is diffrent about the windows release and the linux one

#

the only thinh i can think of is the multithreading

true hemlock
#

for some reason window's runs better?

#

guys i think im fucked

olive sable
# olive sable the only thinh i can think of is the multithreading

linux uses

cpu_set_t cpuset;
CPU_ZERO(&cpuset);
const int core_id = 1;
CPU_SET(core_id, &cpuset);

const pthread_t thread = pthread_self();
pthread_setaffinity_np(thread, sizeof(cpu_set_t), &cpuset);

sched_param sch_params;
sch_params.sched_priority = sched_get_priority_max(SCHED_FIFO);
pthread_setschedparam(thread, SCHED_FIFO, &sch_params);

While windows uses

HANDLE hThread = GetCurrentThread();
SetThreadAffinityMask(hThread, 1 << 2);
SetThreadPriority(hThread, THREAD_PRIORITY_HIGHEST);
olive sable
#

there should be a pin you can short for that

patent walrus
true hemlock
olive sable
#

huh

#

weird

true hemlock
#

well

#

oh

#

okay

#

windows is fucking weird

#

nixos can boot on cl14, cl16, cl18, cl19

midnight sigil
#

wuh

true hemlock
#

windows can't boot on cl18 and under

#

it boots now

#

with cl19

#

fuck you microsoft

olive sable
#

windows fried ram?

amber fractal
#

windows allergic to preformance

midnight sigil
#

what did I miss

olive sable
midnight sigil
#

it's not windows though NeuroHuh

olive sable
#

or uint32_t if you prefer

olive sable
opaque wharf
#

But I think the issue runs deeper than that catdespair

midnight sigil
#

👍

#

now I need /usr/local/lib/libSDL3.a

#

nvm I do have it

olive sable
amber fractal
true hemlock
#

HOLY SHIT WINDOWS YOU FAT FUCk

olive sable
true hemlock
#

i hate windows

amber fractal
midnight sigil
amber fractal
#

Move the binary to the src directory, it needs the /shaders folder

#

at least I'm 90% sure

#

Or just move the shaders folder over, either or

midnight sigil
#

there was a window that popped up for like 100ms, but the process gets terminated afterward

amber fractal
#

Classic not drawing

midnight sigil
#

should I just test if the prebuilt executable here can run in the first place neurOMEGALUL

amber fractal
#

Yeah, that just needs the shader folder

#

me and quack opted to steam-run it

true hemlock
#

steam run a prebuilt only give me max 19K lol

olive sable
#

how are you going to tell me the left one does 18k fps and the right one does 70K fps???

#

there is some fucking witchcraft going on in there

midnight sigil
#

it's windows

amber fractal
#

Just a triangle

golden hazel
olive sable
#

the difrence betweent helinux and windows versions of the triangle

olive sable
golden hazel
#

Ion wanna dual boot and such

olive sable
#

its doing better

#

in normal circumstances linux is absolutly faster, but for this im absolutly flabergasted

glass flower
#

scrajj maybe better thread management?

glass flower
#

golive now make minecraft that runs at 70k frames and make a youtube video about it and get a million views

olive sable
#

you gotta make minecraft in vulkan

golden hazel
#

Minecraft 3

olive sable
#

and you gotta remove the pathfinding of the mobs

#

and actually remove thr mobs

glass flower
golden hazel
olive sable
#

and actually remove the terrain
and actually remove everything besides a single triangle

glass flower
olive sable
#

that way you can get 70K fps

golden hazel
#

No mine No craft

#

Triangle simulator

olive sable
#

minecraft with extra trianlge with no craft with no cheese with no mine

glass flower
#

mhm make minecraft but instead of cubes.. its triangles

golden hazel
olive sable
#

cheese is too expensive

#

we have a very low frame budget

golden hazel
#

How expensive are we talking

glass flower
#

tink i wonder... how much would it hurt performance if instead of 1 triangle.. you make a cube from triangles..

olive sable
#

so 70K fps means we have 0.014ms as budget

glass flower
#

surely it won't hurt fps like at all right?

olive sable
#

maybe a couple extra nanoseconds

glass flower
#

probably even if you do it in the cpu it wouldn't cause a dip no?

#

isn't there a minimum amount of data you need to transfer where the extra verts will fit in?

olive sable
#

not really

golden hazel
olive sable
#

i have this prebuilt, its not the 50k fps one from quack, but its experimental

#

shoudl be around 18K fps

olive sable
#

bwaa

#

idk what the broken lib even is

midnight sigil
#

I can't even get a triangle running

olive sable
#

to be fair, this is the most advanced high-tech top of the line triangle in #programming

nocturne olive
#

Still trying to figure out what Windows is messing up?

olive sable
#

ye

nocturne olive
#

Have you tried running it on Windows without rendering?

olive sable
#

what?

#

no

#

i would get 6 bilion fps

nocturne olive
#

Just a test to see if my very weird theory has any point to it

midnight sigil
#

I gave up

#

this OS might be cursed

#

fuck alpine

true hemlock
#

the fuck

rough bloom
#

99% won't work because Alpine uses musl

midnight sigil
rough bloom
#

ohPwease that should work

midnight sigil
#

I mean it ran, but can't draw

rough bloom
#

glxgears and vulkaninfo and vkcube and stuff work?

true hemlock
#

okay now it won't run at all after switching the sdl3 x86 to x64

midnight sigil
rough bloom
olive sable
#

according to chatgpt this is why vulkan is slower evilShrug
idk how to profile at the nanosecond level so this is my best bet

midnight sigil
#

but vulkaninfo works yes

true hemlock
rough bloom
midnight sigil
#

sam can you make a fully automatic env setup script, so we can boot up a fresh os and render the triangle neuroSadge

olive sable
#

idk how

rough bloom
midnight sigil
#

nix neuro5head

nocturne olive
true hemlock
#

or just put the whole glm folder in somehow

#

@olive sable i need clarification

glass flower
olive sable
#

hi

true hemlock
#

odd, putting the glm folder in src doesn't fix my issue

olive sable
#

i jsut installed glm via pacman iirc

#

i never put any folder stuff in

true hemlock
olive sable
#

on windows it was jsut included with the vulkan sdk

glass flower
#

annytfShrug i put it in there and it worked

olive sable
feral goblet
#

Welp hello everyone

midnight sigil
#

ming_thinking how do I setup env and compile in windows

olive sable
#

ooooh, i think if oyu odn thave it inside the vulkan folder liek msot of us do, thenit doesnt get included cuz i dont have a seperate include for it

#

thats why putting it in the project folder works

glass flower
#

mhm i installed vulkan through scoop

olive sable
midnight sigil
#

yes sir neuro7

true hemlock
#

right, i don't have make

olive sable
#

no

opaque wharf
#

volk is already there

olive sable
#

the volk.c should be inside the src folder

midnight sigil
#

k

midnight sigil
olive sable
#

well, you dont compile sdl3 with make

#

i mean tmy program

true hemlock
#

@olive sable

olive sable
#

100.000 neuroNOWAYING

midnight sigil
rare bramble
#

damn, 100k

#

neuroWicked fast triangles

olive sable
#

it would be pretty funny to get that 1 neurilion like vani said

true hemlock
#

does this even count for the leaderboard lmao

olive sable
#

i highly doubt it will happen but it owuld be funny

olive sable
true hemlock
#

aight im the first to reach 100K

#

imma optimize now

olive sable
#

"now"

#

ive been optemizing this for 4 weeks AquaCry

#

it used to do 5000

#

i figured out how to resize windows in hyprland, after 3 days of usign it lmao

midnight sigil
#

there is just more and more errors coming

olive sable
#

yuo dont have "sched"?

#

are you even runnign this on linux?

midnight sigil
#

I'm in windows duh

olive sable
#

then use the windows repo

midnight sigil
#

neuroPain THERE WAS A WINDOWS BRANCH??

midnight sigil
#

SEDTRCVGYUBJIOPKL[

#

I want to die

olive sable
#

yep

#

thats also how i felt debugging all that shit

true hemlock
#

dink donk update the leaderboard

#

i managed to make windows run on CL16

olive sable
#

i havent uupdated it in hours quack

true hemlock
#

fine i'll do it myself

midnight sigil
true hemlock
#

windows score count?

midnight sigil
olive sable
#

most of it is there cuz it needs to be there

true hemlock
#

vani got 2nd?