PureBasic - форум

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » PureBasic - форум » Новости » PureBasic 6.50


PureBasic 6.50

Сообщений 1 страница 8 из 8

1

https://www.purebasic.fr/english/viewtopic.php?t=89559

- Added: Brand new cross-platform help viewer, integrated into the IDE (big thanks to Pf Shadoko) !
- Added: Per monitor auto DPI scaling for Windows 10+ windows and gadgets !
- Added: ExtractArray(), JoinArray(), ExtractList(), and JoinList()
- Added: WindowResolutionX(), WindowResolutionY(), WindowScaledX(), WindowScaledY(), WindowUnscaledX(), and WindowUnscaledY()
- Added: XmlDialogGadget() to have the XML dialog features into a container gadget
- Added: DialogLanguage() and FoldDialogElement() to the Dialog library
- Added: New Dialog XML features: 'lang' and 'folded' attributes, <item>, <column>, <shortcut>, <shortcutgadget>, <compilerif>/<compilerelse>, 'id' expressions, width/height="ignore", 'forcesize' and 'invisible' window attributes
- Added: #PB_Frame_Container flag support to the <frame> Dialog XML object
- Added: WebViewGadget() for the Qt subsystem (except for Raspberry ARM32)
- Added: Full OpenWindowedScreen() support for the Qt subsystem (keyboard, mouse, auto-stretch, borders, and OGRE)
- Added: WebP image support for decoding and encoding
- Added: UseOSImageDecoder() and UseOSImageEncoder() to load and save images using native plugins
- Added: EncodeSound() and SaveSound() to save sounds using native plugins
- Added: UseMP3SoundDecoder() to enable MP3 loading and saving
- Added: UseOpusSoundDecoder() to enable Opus loading and saving
- Added: DisableGadgetRedraw() for faster item insertion in ListIconGadget(), ListViewGadget(), TreeGadget() and ComboBoxGadget() (mainly for Windows)
- Added: Resize mode for DrawImage() to have raw or smooth resize
- Added: SpriteVectorOutput() and TextureVectorOutput()
- Added: #PB_Texture_Overwrite flag support for SpriteOutput(), TextureOutput(), SpriteVectorOutput(), and TextureVectorOutput() for faster dynamic access
- Added: #PB_Window_Modal flag to OpenWindow() to disable the underlying window
- Added: #PB_Canvas_NoTabNavigation flag to CanvasGadget() to be able to handle tab and shift+tab keys
- Added: #PB_Editor_Centered flag to EditorGadget()
- Added: #PB_All for RemoveGadgetColumn() to ExplorerListGadget() as well for consistency
- Added: #PB_Packer_Xz support to the Packer library
- Added: #PB_File_Atomic mode to CreateFile(): the file is written to a temporary file and only replaces the destination when complete
- Added: #PB_Program_NoInput flag to RunProgram() on Linux and macOS (the program gets no stdin)
- Added: Long filename support for Windows (using \\?\ and without explicit \\?\) for all file related commands
- Added: Local variable support to the debugger for the C backend
- Added: Many new debugger checks (menus, toolbars, statusbars, gadget lists, sorting, Scintilla, WebView, mail, XML attributes, ...)
- Added: Support for the 'mold' linker on Linux
- Added: TinyCC support for the Linux C backend when the optimizer is off (much faster compilation on the Raspberry Pi)
- Added: WaterHeight() is now implemented
- Added: #PB_ScreenWindow_BorderLess, #PB_ScreenWindow_Invisible, and #PB_ScreenWindow_SizeGadget support to the ScreenGadget library
- Added: A special doc page which lists all the PureBasic third party dependencies and their versions

- Added: IDE: The Variable Viewer now shows the items of a form in design view
- Added: IDE: New toolbar icons (Show in Folder, Paste as Comment, Clear Markers, Syntax Check, and Find Previous)
- Added: IDE: F1 now works on And, Or, Xor, and Not

- Optimized: Realtime shadows and skeleton animations are now much faster in the 3D engine
- Optimized: The 3D 'Main' and 'Terrain' directories are no longer needed for shadows and can be fully removed
- Optimized: Much faster zip file lookup by name in the Packer library (about 90x)
- Optimized: Smaller lld-link for Windows
- Optimized: IDE: Faster editor on every key press, caret move, and scroll
- Optimized: IDE: The Help tool is only created when first displayed (faster startup and much less memory)

- Updated: OGRE to latest 14.6 version
- Updated: libjpeg is now replaced by libjpeg-turbo which is much faster
- Updated: PCRE1 library is obsolete and now replaced by PCRE2
- Updated: All static dependencies to latest version !

- Changed: SaveJSON(), SaveXML(), SaveImage(), the sound encoders, and the Preference library now use a temporary file when the destination exists, so a full disk no longer leaves a half written file (and the original file is kept)
- Changed: OpenXMLDialog() now centers the dialog when x or y is #PB_Ignore
- Changed: FlushFileBuffers() now reports write errors
- Changed: RayCast() and RayPick() second point is now the destination, as documented (it was a direction) - see the Migration from PureBasic 6.40 to 6.50  for more information
- Changed: BodyPick() now takes a #Camera number (no more CameraID()) - see the Migration from PureBasic 6.40 to 6.50  for more information
- Changed: IDE: Source and form files are now saved with #PB_File_Atomic

- Fixed: A lot of compiler, library, and IDE bugs, many more unit tests created to avoid regressions and catch OS discrepancies
- Fixed: About 1300 commands of the PureBasic commandset have been fuzzed to fix bugs raised when passing wrong arguments
- Fixed: A unit test suite calling every 3D command (240 tests) has been added, which fixed many crashes and wrong behaviours

0

2

Проверил WebP image и UseOSImageDecoder() and UseOSImageEncoder()
Для меня очень кстати и вовремя подвезли !!!
Только собирался разбираться с подключением внешних инструментов.
И что примечательно, если заменить расширение webp на png и например подключить в качестве иконки страницы в SpiderBasic, то браузеры прекрасно такой вариант переваривают.

Отредактировано useful (24.09.2026 11:29:24)

0

3

Неужели хаос dpi исправили?  :smoke:

0

4

Функция ExtractArray() довольно быстрая.

Код:
DisableDebugger
Time = ElapsedMilliseconds()

CreateStringBuilder(0)

For i = 1 To 20000000
  AppendStringBuilderString(0, Str(i))
  AppendStringBuilderString(0, ",")
Next

Result$ = GetStringBuilderString(0)

StringTime = ElapsedMilliseconds() - Time
Time = ElapsedMilliseconds()

Dim MyArray.s(0)
Count = ExtractArray(MyArray(), Result$)

ArrayTime = ElapsedMilliseconds() - Time

MessageRequester(""+Count, "StringTime="+StringTime+~" ms\nArrayTime="+ArrayTime)

2.5 секунды нужно на заполнение строки, а ExtractArray() копирует в массив за 0.5 секунды.
Раньше это приходилось делать через StringField() или регулярку.
StringField() работает значительно медленнее из-за необходимости искать нужный индекс при каждом вызове функции.

Код:
DisableDebugger
Time = ElapsedMilliseconds()

CreateStringBuilder(0)

For i = 1 To 20000000
  AppendStringBuilderString(0, Str(i))
  AppendStringBuilderString(0, ",")
Next

Result$ = GetStringBuilderString(0)

StringTime = ElapsedMilliseconds() - Time
Time = ElapsedMilliseconds()

Count = CountString(Result$, ",")
Dim MyArray.s(Count)

For i=1 To Count
  MyArray(i) = StringField(Result$, i, ",")
Next

ArrayTime = ElapsedMilliseconds() - Time
MessageRequester(""+Count, "StringTime="+StringTime+~" ms\nArrayTime="+ArrayTime)

0

5

Пётр
Так изначально я не пользовался StringField() или для пары элементов, а для множества всегда использовал набор от wilbert, так что с ним надо сравнивать скорость. Я даже удивлялся почему этих функций нет в комплекте, когда они нужны в каждой второй программе.

0

6

"I switched my main computer from Windows to Linux" (c) Fred  :cool:
https://www.purebasic.fr/english/viewto … ac#p662268

p.s. если добавлять в правую панель справку, то появилась настройка на тему где её искать.

Отредактировано useful (17.10.2026 10:23:36)

0

7

Скачал purebasic-devel, при открытии проекта PureBasicIDE.pbp пишет: не найден файл HelpViewer.pb, потом LinuxHelp.pb. При попытке скомпилировать PureBasic.pb пишет ошибку HelpTool.pb в строке 1340, ну это ожидаемо если двух файлов нет.

0

8

Выпущена релизная версия.

0


Вы здесь » PureBasic - форум » Новости » PureBasic 6.50