I ported all my Graphics to Terminal (Olive.c Ep.09)

  Рет қаралды 12,176

Tsoding Daily

Tsoding Daily

Жыл бұрын

References:
- Olive.c: github.com/tsoding/olive.c

Пікірлер: 19
@bradstrange1374
@bradstrange1374 Жыл бұрын
I want to see it run Bad Apple!
@AntonioNoack
@AntonioNoack Жыл бұрын
Why aren't you using different scale-down factors for x and y? That could correct your aspect ratio without duplicating characters.
@nichttoxisch916
@nichttoxisch916 Жыл бұрын
33:03 can’t handle that hahah
@5omebody
@5omebody Жыл бұрын
speaking of escape codes, you might want to look into using the alternate buffer as well
@rogo7330
@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
@rogo7330 Жыл бұрын
Also clock_gettime is not even doing any syscalls. Im curious how it works, but it works great.
@addisonmigash8227
@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
@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
@dejanlekic5513 Ай бұрын
You could add SIXEL support and have everything work in the terminal
@5omebody
@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
@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
@Am-pe4iy Жыл бұрын
What's the gdb frontend u are using?
@kristoff_t2013
@kristoff_t2013 Жыл бұрын
New video! :D
@legendrags
@legendrags 5 ай бұрын
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
@ismailsaid1718 Жыл бұрын
21:56
@jan_harald
@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
@TsodingDaily Жыл бұрын
Good. I'm never fixing that then.
@spacetabs
@spacetabs Жыл бұрын
You just had to be annoyed, 😂
@Vulto166
@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.
Кәріс тіріма өзі ?  | Synyptas 3 | 8 серия
24:47
kak budto
Рет қаралды 1,7 МЛН
Разбудила маму🙀@KOTVITSKY TG:👉🏼great_hustle
00:11
МишАня
Рет қаралды 3,4 МЛН
Зу-зу Күлпәш. Стоп. (1-бөлім)
52:33
ASTANATV Movie
Рет қаралды 1,1 МЛН
小路飞姐姐居然让路飞小路飞都消失了#海贼王  #路飞
00:47
路飞与唐舞桐
Рет қаралды 89 МЛН
This is better than TempleOS
1:55:21
Tsoding Daily
Рет қаралды 5 М.
New Graphics Library in C (Olive.c Ep.01)
1:58:46
Tsoding Daily
Рет қаралды 132 М.
SmoothLife
1:16
Salvador Limones
Рет қаралды 16 М.
3D ASCII with Colors
2:40:13
Tsoding Daily
Рет қаралды 16 М.
Adding "Minecraft" Text to My C Graphics Library (Olive.c Ep.08)
1:07:34
Legendary Font Rendering
1:08:46
Tsoding Daily
Рет қаралды 19 М.
Adding Triangles to my Graphics Library in C (Olive.c Ep.02)
1:27:10
Tsoding Daily
Рет қаралды 22 М.
You don't need Generics in C
1:37:38
Tsoding Daily
Рет қаралды 55 М.
Carregando telefone com carregador cortado
1:01
Andcarli
Рет қаралды 1,3 МЛН
Распаковка айфона в воде😱 #shorts
0:25
Mevaza
Рет қаралды 1,6 МЛН
Samsung or iPhone
0:19
rishton vines😇
Рет қаралды 7 МЛН
Which Phone Unlock Code Will You Choose? 🤔️
0:14
Game9bit
Рет қаралды 10 МЛН
📱 SAMSUNG, ЧТО С ЛИЦОМ? 🤡
0:46
Яблочный Маньяк
Рет қаралды 1,3 МЛН