Why aren't you using different scale-down factors for x and y? That could correct your aspect ratio without duplicating characters.
@nichttoxisch916 Жыл бұрын
33:03 can’t handle that hahah
@5omebody Жыл бұрын
speaking of escape codes, you might want to look into using the alternate buffer as well
@rogo7330 Жыл бұрын
clock_gettime NEVER CRASHES, trust me :3 Also, when I used usleep it torched my CPU to crispy crust. I switched to nanosleep and it's SO better. I think (at least in Arch distribution of libc) usleep doing some sort of busy sleeping, idk
@rogo7330 Жыл бұрын
Also clock_gettime is not even doing any syscalls. Im curious how it works, but it works great.
@addisonmigash8227 Жыл бұрын
@@rogo7330 “While it may seem like it would require a system call to access the system clock, on some systems, including Linux, it is implemented using a virtual dynamic shared object (VDSO) mechanism. The VDSO is a kernel-provided shared library that allows user-space programs to access certain kernel-level functionalities without the need for a system call. One of the functionalities that can be accessed through the VDSO is the system clock. When a program calls clock_gettime(), the C library first checks if the VDSO is available and can be used to retrieve the clock time. If the VDSO is present, clock_gettime() accesses it through a function pointer and retrieves the time directly from the VDSO, without making a system call. This mechanism is more efficient than using a system call, as it avoids the overhead of switching between user space and kernel space. However, if the VDSO is not available or cannot be used, the C library will fallback to using a system call to retrieve the clock time. This ensures that clock_gettime() will always work correctly, regardless of whether the VDSO is available or not.”
@rogo7330 Жыл бұрын
@@addisonmigash8227 basically there is a function that can be directly executed by userspace program, but this function is doing something that requires kernel priveleges. Thats how I understand it from this description.
@dejanlekic5513Ай бұрын
You could add SIXEL support and have everything work in the terminal
@5omebody Жыл бұрын
oh also about cursor jumping, i guess the easiest way to avoid that would be to build up the entire string in the program, then print it all at once. not that that would be a good idea
@miguidieu06 Жыл бұрын
That's exactly what I'm doing in my C program, but my cursor still jumps around. I print it using printf. I guess it could be due to the fact that my computer screen refreshes when its in the middle of printing I guess. But I am not sure yet
@Am-pe4iy Жыл бұрын
What's the gdb frontend u are using?
@kristoff_t2013 Жыл бұрын
New video! :D
@legendrags5 ай бұрын
Hello sir, could you please port your graphics to an arduino board with leds and mux-demux-er? We would love to see our -5 star 0.04K video games on it.
@ismailsaid1718 Жыл бұрын
21:56
@jan_harald Жыл бұрын
I keep being annoyed at how you ignore the terminal characters having a different aspect ratio, and NOT compensating for it.... terminal characters are TWICE as high as wide, that circle is CLEARLY an ellipse, not a circle, it's very visibly squished...
@TsodingDaily Жыл бұрын
Good. I'm never fixing that then.
@spacetabs Жыл бұрын
You just had to be annoyed, 😂
@Vulto166 Жыл бұрын
If olivec one day become an entire framework to develop graphics reading an writing from the memory. If it's not impossible itself. Would be amazing.