Search found 947 matches

by chi
Mon Aug 01, 2022 2:41 am
Forum: 3D Programming
Topic: PB 6.00 - Shader test
Replies: 18
Views: 2395

Re: PB 6.00 - Shader test

Windows 7, NVIDIA GeForce GTX 1060 6GB With OpenGL: As expected... http://www.Lunamedia.at/misc/shadertest/st_gl.gif ... with DirectX9: [ERROR] (Line: 23) [ERROR] The specified #Material is not initialised. No textures/blend, no hard shadow http://www.Lunamedia.at/misc/shadertest/st_dx9.jpg ... and ...
by chi
Mon Aug 01, 2022 1:49 am
Forum: Tricks 'n' Tips
Topic: [Windows] UI Automation Interface example
Replies: 8
Views: 1567

Re: [Windows] UI Automation Interface example

Hmm, I get the message "Explorer status window not found" for both examples. I have tried copying large files to the desktop or doing some things in Explorer or Notepad, but nothing. I can use any tool on this website to get information about the UI, so do I need to do anything special? I ...
by chi
Mon Aug 01, 2022 12:44 am
Forum: Off Topic
Topic: Different compilers
Replies: 27
Views: 2616

Re: Different compilers

What are the units of the results? ms - milliseconds fps - frames per second If it's ms, why is opt slower?! time = ElapsedMilliseconds() + 10000 Repeat WindowEvent() Paint() counter + 1 Until ElapsedMilliseconds() > time The number of rendered screens in 10 seconds.... That's the way cologneskater...
by chi
Sun Jul 31, 2022 5:11 pm
Forum: Off Topic
Topic: Different compilers
Replies: 27
Views: 2616

Re: Different compilers

Are the results in the zip? 143 - bm3_asm_imp.exe 173 - bm3_clang_imp.exe 215 - bm3_clang_imp_opt.exe 180 - bm3_gcc_imp.exe 279 - bm3_gcc_imp_opt.exe 282 - bm3_msvc_imp_opt.exe 170 - bm3_zig_imp.exe 219 - bm3_zig_imp_opt.exe Spec.: Intel(R) Core(TM) i7-3930K CPU @ 3.80GHz Cores: 6, Threads: 12, Mem...
by chi
Sun Jul 31, 2022 3:12 pm
Forum: Off Topic
Topic: Different compilers
Replies: 27
Views: 2616

Re: Different compilers

If somebody is interested, I've uploaded a small benchmark. The original code ( plasma ) is from cologneskater and Realizimo from the forum, but I also made some changes. In the zip file are .pb, .c and .exe files, each compiled with _imp or _imp_opt with the C backend (x64). _imp means that sinf() ...
by chi
Sun Jul 31, 2022 10:57 am
Forum: Off Topic
Topic: Different compilers
Replies: 27
Views: 2616

Re: Different compilers

The problem with Zig is that it doesn't work on Windows 7 (and older) without a hack! I posted the hack on reddit , but that was for zig-windows-x86_64-0.10.0-dev.1606, where all you had to do was to replace GetSystemTimePreciseAsFileTime (kernel32.dll) with GetSystemTimeAsFileTime inside Zig.exe an...
by chi
Thu Jul 28, 2022 5:52 pm
Forum: Off Topic
Topic: Different compilers
Replies: 27
Views: 2616

Re: Different compilers

Didn't Fred advocate Pelles C at one time? http://www.smorgasbordet.com/pellesc/ I did some tests with Pelles 10 (was already installed on my drive), but encountered some problems with strict type checking. So there is no easy way to simply convert PB to Pelles C without first running a linter (sta...
by chi
Thu Jul 28, 2022 4:07 pm
Forum: Off Topic
Topic: Different compilers
Replies: 27
Views: 2616

Re: Different compilers

Didn't Fred advocate Pelles C at one time? http://www.smorgasbordet.com/pellesc/ Thx for the Pelles C suggestion! I remember trying some things with Pelles 8 when it came out, but I wasn't very happy with the optimization results compared to other compilers. Maybe it's time to revisit and check out...
by chi
Thu Jul 28, 2022 10:07 am
Forum: Off Topic
Topic: Different compilers
Replies: 27
Views: 2616

Re: Different compilers

Don't worry, that was a valid question. I think both programs could complement each other well. However, I haven't done any testing in this regard yet. The ability to include C headers in PB is not on my agenda at the moment. The screenshot is fairly old, it predates the C backend ;). Back then, Lin...
by chi
Wed Jul 27, 2022 11:43 pm
Forum: Off Topic
Topic: Different compilers
Replies: 27
Views: 2616

Re: Different compilers

Nothing was wrong :), just a different approach. Mine would be more UI driven and switching from GCC to MSVC to Clang or whatever is just a matter of pushing a button and selecting a (customizable) preset. MSVC also needs some special handling of the C source before compiling and it's done all autom...
by chi
Wed Jul 27, 2022 9:10 pm
Forum: Off Topic
Topic: Different compilers
Replies: 27
Views: 2616

Different compilers

Poll: What other compilers would you like to be able to use with PB, besides the usual ones like MSVC and Clang? I've been playing around with different compilers since Alpha1 and am now able to compile my PB sources with GCC, MSVC, Clang and a little bit TCC. Everything runs fine, but it's still in...
by chi
Tue Jul 26, 2022 1:24 pm
Forum: General Discussion
Topic: Date - Problem with year 2038
Replies: 5
Views: 622

Re: Date - Problem with year 2038

Rinzwind wrote: Tue Jul 26, 2022 9:19 am Somewhere around 2039
Sad but true :wink:
by chi
Fri Jul 08, 2022 5:32 am
Forum: Coding Questions
Topic: miniaudio.h
Replies: 13
Views: 976

Re: miniaudio.h

You could try the CRT from WDK 7.1.0. It's the last CRT (dated 2010) that works with PB out of the box. PB's msvcrt.lib is from 2004.
by chi
Thu Jun 02, 2022 1:38 pm
Forum: Bugs - IDE
Topic: Hardcoded color values for TabBar
Replies: 2
Views: 582

Re: Hardcoded color values for TabBar

Hi Fred, I'm still on Windows7 with UniversalThemePatcher enabled, the theme is called Placebo Ashtray . Although slightly customized (Window borders, Scrollbars, Checkboxes, ...) it still uses its default color scheme. The text front color of the TabBarGadget in the IDE is the only place that cause...
by chi
Tue May 24, 2022 2:16 pm
Forum: Coding Questions
Topic: Best way to hide a string?
Replies: 12
Views: 1178

Re: Best way to hide a string?

Keep in mind that these strings are still clearly visible with ProcessExplorer / dblclick exe / Strings / check Memory