Search found 516 matches

by AndyMK
Wed Feb 14, 2024 10:52 am
Forum: Coding Questions
Topic: WebViewGadget and certificates
Replies: 2
Views: 199

Re: Webviewgaget and certificates

Once the login page is loaded,

Code: Select all

WebViewExecuteScript(0, ~"document.getElementById('username').value = 'test';")
does not fill the field although the same command works from the dev tools in the browser. Do i need to detect when the page is fully loaded?
by AndyMK
Wed Feb 14, 2024 10:34 am
Forum: Coding Questions
Topic: WebViewGadget and certificates
Replies: 2
Views: 199

Re: Webviewgaget and certificates

OpenWindow(0, 100, 100, 400, 400, "Hello", #PB_Window_SystemMenu) WebViewGadget(0, 0, 0, 400, 400) SetGadgetText(0, "https://192.168.1.1") WebViewExecuteScript(0, ~"document.querySelector('#details-button').click()"); Delay(500) WebViewExecuteScript(0, ~"var proce...
by AndyMK
Wed Feb 14, 2024 10:06 am
Forum: Coding Questions
Topic: WebViewGadget and certificates
Replies: 2
Views: 199

WebViewGadget and certificates

Hi, is there a way to bypass a certificate error warning when opening a page hosted on a local server?
by AndyMK
Mon Jan 01, 2024 10:04 pm
Forum: Coding Questions
Topic: Dll and array
Replies: 1
Views: 325

Re: Dll and array

Something like this maybe? This code is not checked so might not work. ProcedureDLL AttachProcess(Instance) Global Dim my_string_array.s(10) EndProcedure ProcedureDLL DetachProcess(Instance) FreeArray(my_string_array()) EndProcedure ProcedureCDLL array_of_strings() my_string_array(0) = "hello&q...
by AndyMK
Sat Nov 18, 2023 9:06 pm
Forum: Coding Questions
Topic: Why is this code 20 times slower than C#?
Replies: 16
Views: 677

Re: Why is this code 20 times slower than C#?

idle wrote: Sat Nov 18, 2023 8:51 pm I'm not sure if the c backend will inline the functions , use macros and you will see a vast improvement. I will have a look at it when I get up, lazy Sunday morning here
Please do, would love to see how much it can be improved.
by AndyMK
Sat Nov 18, 2023 8:33 pm
Forum: Coding Questions
Topic: Why is this code 20 times slower than C#?
Replies: 16
Views: 677

Re: Why is this code 20 times slower than C#?

I ran it with debugger off and Optimized code ON. I get the same performance as compiling to exe.
by AndyMK
Sat Nov 18, 2023 8:24 pm
Forum: Coding Questions
Topic: Why is this code 20 times slower than C#?
Replies: 16
Views: 677

Re: Why is this code 20 times slower than C#?

If i turn off "Optimize Generated Code" it's 60% slower than C#
by AndyMK
Sat Nov 18, 2023 8:22 pm
Forum: Coding Questions
Topic: Why is this code 20 times slower than C#?
Replies: 16
Views: 677

Re: Why is this code 20 times slower than C#?

jacdelad wrote: Sat Nov 18, 2023 8:16 pm Did you turn the debugger off?
No, I didn't. I didn't expect that much of a boost with the debugger off. It's now faster than C# but not by a huge amount. ASM is still much slower, 60% slower.

Cant believe I forgot the debugger lol
by AndyMK
Sat Nov 18, 2023 8:16 pm
Forum: Coding Questions
Topic: Why is this code 20 times slower than C#?
Replies: 16
Views: 677

Re: Why is this code 20 times slower than C#?

The number you get tells you how many buffers were resampled in 5ms so higher is better
by AndyMK
Sat Nov 18, 2023 7:56 pm
Forum: Coding Questions
Topic: Why is this code 20 times slower than C#?
Replies: 16
Views: 677

Why is this code 20 times slower than C#?

Using C Backend. ASM is 70 times slower Procedure.f Min(value1.f, value2.f) If value1 < value2 ProcedureReturn value1 Else ProcedureReturn value2 EndIf EndProcedure Procedure.f Lerp(value1.f, value2.f, fraction.f) ProcedureReturn value1 + (value2 - value1) * fraction EndProcedure Procedure ResampleA...
by AndyMK
Tue Sep 12, 2023 7:23 am
Forum: Mac OSX
Topic: UDP api for macos?
Replies: 2
Views: 399

Re: UDP api for macos?

Thanks
by AndyMK
Mon Sep 11, 2023 4:16 pm
Forum: Mac OSX
Topic: UDP api for macos?
Replies: 2
Views: 399

UDP api for macos?

On Windows we use Winsock. On macos we use?? The reason I want this is so i can have blocking sockets. If anyone has an example, that would be super helpful. Thanks
by AndyMK
Wed Aug 09, 2023 11:07 am
Forum: Tricks 'n' Tips
Topic: WebUI wrapper
Replies: 43
Views: 6892

Re: WebUI wrapper

This is actually very nice. Thanks. I assume we can build GUI's in Spiderbasic and use them in PB?
by AndyMK
Mon Aug 07, 2023 2:59 pm
Forum: 3D Programming
Topic: Landscape v8
Replies: 23
Views: 4000

Re: Landscape v8

@pf shadoko

Is it possible to implement SSAO with the PB version of OGRE?