Загрузка страницы

GDI vs ActiveX Which is faster 🚀? The answer may surprise you!

Is GDI faster than ActiveX? In this video Dimitri Geerts shows us an updated comparison of the Game of life. Previously he showed us how he used ActiveX to create the Game of life but at the end of the video we wondered which would be faster (GDI or ActiveX). Magically he's already created the GDI version and shows us a quick comparison.

You can get his GDI script here: https://the-Automator.com/GDIvsActiveX

TLDR: The video discusses the use of GDI+ library for creating GUIs, optimizing performance, and simplifying coding through HTTP requests and libraries.

1. 00:00 📈 Using gdip may be faster than displaying images and adding controls and options can generate interesting shapes in the GUI.
1.1 Dimitri discusses his experience with GDI and how he believes it could potentially be faster than EDI.
1.2 The speaker compared two scripts with the same initial pixels and added extra values for refresh rate to show the difference between the ActiveX example and the visualization of small squares.
1.3 The average uses the whole range and gives a rough estimation, but it may not be consistent after a long time, so it's better to limit how far back it goes.
1.4 Using gdip is faster than displaying images and using a definition of a black square may be even faster.
1.5 The resources being used in the program are unclear, but testing it on a fast computer or using a different method than referring to images on the hard drive may improve speed.
1.6 The speaker added controls and options to draw interesting shapes in the GUI, including a white clip manual that generates a glider on its own.

2. 09:30 📊 GDI+ offers more flexibility than ActiveX, reading from a file is slower, and using a sleep function can help maintain consistency in a program's performance.
2.1 GDI+ is a good way to visualize and test out systems, and offers more flexibility in changing colors and adding shapes compared to ActiveX.
2.2 Reading from a file is slower and it's better to have scripts that can run on their own without extra files.
2.3 The consistency of people's experience with a program can be affected by factors such as the speed of their hard drive, but using a sleep function in the program can help maintain consistency.
2.4 The speaker discussed reading the value of test control and skipping the function if the speed is zero, and added an if statement for security purposes.
2.5 The goal is to run it as fast as possible, with version 2 no longer in use, and there may be safeguards in place to prevent burnout.

3. 16:14 🚀 AutoHotkey version 2 is recommended to avoid launch errors, and changing priority settings may not improve performance.
3.1 Download the latest version of AutoHotkey (version 2) to avoid errors when launching.
3.2 The default behavior can be changed, but it's unclear if it's still a command or function.
3.3 Changing priority settings may not have a significant impact on performance, so it's best to test it out yourself.

4. 20:36 👨‍🏫 The speaker explains how to use GDI+ library to draw shapes and create brushes in a canvas area with a set amount of pixels.
4.1 When working on something new, it's easier and faster to find an example and play with it before reading the documentation.
4.2 The speaker discusses the use of gdip library for graphical device interface and the importance of loading the dll library before creating a bitmap.
4.3 The speaker discussed using OCR in Windows 10 and finding a way to process images without saving them as files.
4.4 A pointer is a reference to where data is stored in memory.
4.5 The lecture discusses how to draw shapes and create brushes using GDI+ in a canvas area with a set amount of pixels.

5. 28:58 🖥️ Optimizing screen refresh rate by filling white pixels first and then adding black pixels, while emphasizing the importance of making backups and reverting to earlier versions in programming.
5.1 The speaker discusses optimizing the refresh rate of a screen by filling white pixels first and then adding black pixels, but notes that clicking and drawing on the screen requires changing pixels separately.
5.2 GDI updates pixels on a hidden GUI one at a time using the function update layered window.
5.3 The function fills a bitmap with white and then fills specific coordinates with a block if the state is defined as s1, taking into account that there are generally more white pixels than black ones in the game of life, while working on a hidden GUI.

6. 37:23 👨‍💻 Using HTTP requests and libraries can simplify coding and allow access to all commands in a database tool.

7. 40:54 🔍 Greplin is a powerful and free text search program that can search and replace across files

8. 44:56 🚀 Gdi is faster than activex for rendering frames per second, but Gdip is the way to go for visualizing things and optimizing development time.

Видео GDI vs ActiveX Which is faster 🚀? The answer may surprise you! канала Joe - AUTOHOTKEY Guru
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
2 марта 2022 г. 17:47:51
00:51:07
Яндекс.Метрика