Search found 2971 matches

by vdecampo
Jul 21, 2017 2:41
Forum: Beginners
Topic: Speed issues with my game
Replies: 14
Views: 347

Re: Speed issues with my game

IIRC FB uses the high resolution timer internally when available so using a double to store a start time could be used for comparisons. Pseudo Code Dim loopStart as Double ' Start Game Loop Do if (Timer-loopStart > .33) Then 'This is 30 FPS 'Process Logic 'Render Screen loopStart = Timer End if Slee...
by vdecampo
Jul 21, 2017 2:19
Forum: Beginners
Topic: Speed issues with my game
Replies: 14
Views: 347

Re: Speed issues with my game

How are you timing your game loop? Do you allow so many game ticks per second? You can accomplish this most easily by using a timer variable to limit how many passes per second. More accurately you would process your game movement based on the elapsed time for each game tick but this is more involve...
by vdecampo
Jul 05, 2017 3:15
Forum: General
Topic: Opportunity to make some Cash
Replies: 31
Views: 677

Re: Opportunity to make some Cash

MrSwiss wrote:@Vince,

it isn't exactly helpful, to compare a relatively new SOC (R-Pi), with "stone-age" PC-HW ...
(as comparing Apples and Bananas, while both are "fruit's")


I guess the real question is, why not just replace the stone-age PC-HW with a $35 Raspberry pi?

-V
by vdecampo
Jul 03, 2017 19:58
Forum: General
Topic: Opportunity to make some Cash
Replies: 31
Views: 677

Re: Opportunity to make some Cash

I've run Linux with the Mono framework on a $35 Raspberry Pi computer with 1Gb RAM and my c# app ran fine (and it was graphic intensive). I would imagine a POS app would run just fine. Many assemblies or DLLs for .NET can be used on Mono. And there is always more than one way to approach a problem. ...
by vdecampo
Jul 03, 2017 14:02
Forum: General
Topic: Opportunity to make some Cash
Replies: 31
Views: 677

Re: Opportunity to make some Cash

Why not move to Linux and use VB under Mono? Its just like VB.NET, and its free. Depending on how your VB code is written, it may work with little or no modification.

Nothing against FB. Just seems like the right tool for the job.

-Vince
by vdecampo
Jul 03, 2017 13:52
Forum: Tips and Tricks
Topic: A simple emulator
Replies: 3
Views: 399

Re: A simple emulator

Just so you are aware, your hexconvert function is not necessary. Just use Hex(value,2) to guarantee you get a 2-digit value.

-Vince
by vdecampo
Jun 08, 2017 19:31
Forum: General
Topic: How to use Arrays In FreeBASIC
Replies: 12
Views: 361

Re: How to use Arrays In FreeBASIC

This isn't an array. It looks like you are using a Listbox control. They are 2 very different things.

-Vince
by vdecampo
Jun 06, 2017 18:49
Forum: Beginners
Topic: Always on top
Replies: 9
Views: 247

Re: Always on top

#Include "windows.bi" Dim As POINT pt Do If GetCursorPos(@pt) Then Print pt.x, pt.y End If If GetAsyncKeyState(VK_LBUTTON) Then Print "Left Button Pressed" Sleep 100 Loop Until InKey=Chr(27) You can get a list of all the virtual key codes Here -Vince
by vdecampo
Jun 05, 2017 15:44
Forum: Beginners
Topic: Always on top
Replies: 9
Views: 247

Re: Always on top

Yes Here is a start for your wish list. This will get the screen coordinates of the mouse whether inside or outside of the program window #Include "windows.bi" Dim As POINT pt Do If GetCursorPos(@pt) Then Print pt.x, pt.y End If Sleep 100 Loop Until InKey=Chr(27) -Vince
by vdecampo
Jun 05, 2017 15:19
Forum: Beginners
Topic: Always on top
Replies: 9
Views: 247

Re: Always on top

Yes
by vdecampo
Jun 05, 2017 15:17
Forum: Community Discussion
Topic: A new section for FreeBasic on The Joyful Programmers forum
Replies: 28
Views: 1120

Re: A new section for FreeBasic on The Joyful Programmers forum

I was watching some MIT lectures while researching the idea of creating a new programming language and the one key point the professor spoke of was that it would need to have at a minimum, associative arrays as a standard data type. I searched the FB forum and found several discussions of which I w...
by vdecampo
May 16, 2017 17:54
Forum: Linux
Topic: Question about gcc internal library
Replies: 10
Views: 399

Re: Question about gcc internal library

St_W wrote:I'd rather suggest to enable compiler optimizations if you're already using the gcc backend of FreeBasic.


Another suggestion would be to optimize your algorithms.

-Vince
by vdecampo
May 16, 2017 13:11
Forum: Windows
Topic: How to mark application to require admin privilegies to run?
Replies: 2
Views: 223

Re: How to mark application to require admin privilegies to run?

You need to create a manifest file that goes with your EXE file. Example (MyApp.exe.manifest) <?xml version="1.0" encoding="utf-8" ?> <asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm...
by vdecampo
May 11, 2017 15:45
Forum: General
Topic: turtle 2.0
Replies: 31
Views: 1103

Re: turtle 2.0

[quote="bplus"Also screen 20 is a shade too tall for my laptop, I checked out screen in help and see I am restricted to preset sizes.[/quote]

Check out the ScreenRes command. You can specify height/width of most any size.

-Vince
by vdecampo
May 08, 2017 12:09
Forum: General
Topic: Threads and thread-safety
Replies: 5
Views: 289

Re: Threads and thread-safety

A routine is thread-safe when it is re-entrant without concern of race conditions or variable value collisions. What this generally means is that there are no global variables accessed by the routine and that every entry will have its own safe copy of variables or values. There are exceptions to wan...

Go to advanced search