Search found 1236 matches
- Sun Feb 06, 2022 12:10 pm
- Forum: Bugs - IDE
- Topic: Identation problem [Solved]
- Replies: 22
- Views: 1909
Re: Identation problem
I'm on linux / can't reproduce, so I will just ask: How did you get that indentation? Is that the result you get with Cntrl+A Cntrl+I (select all, format indentation)?
- Sun Feb 06, 2022 8:49 am
- Forum: Coding Questions
- Topic: AutoStretch + windowMouse
- Replies: 4
- Views: 443
Re: AutoStretch + windowMouse
You need to process all events per frame. Does that help? InitSprite() winId = OpenWindow(#PB_Any, 0, 0, 640, 480, "Test", #PB_Window_SystemMenu) OpenWindowedScreen(WindowID(winId), 0, 0, 640, 480, #True, 0, 0) ResizeWindow(winId, 0, 0, 1024, 768) CreateSprite(1, 32, 32) StartDrawing(Sprit...
- Sun Feb 06, 2022 6:25 am
- Forum: Bugs - IDE
- Topic: Identation problem [Solved]
- Replies: 22
- Views: 1909
Re: Identation problem
The preferences settings is a default setting, i.e. for new files. For the current file check File > File format.
- Sat Jan 29, 2022 3:55 pm
- Forum: General Discussion
- Topic: JSDoc for PB?
- Replies: 2
- Views: 455
Re: JSDoc for PB?
I don't know jsdoc, but you can have a look at JaPBdoc:
https://www.purebasic.fr/english/viewto ... 14&t=22605
If you download sgx (https://www.purebasic.fr/english/viewtopic.php?t=31357) you can look at examples of generated docs, sgx/sgxDoc/sgxDoc.html and sgxDocFull.html
https://www.purebasic.fr/english/viewto ... 14&t=22605
If you download sgx (https://www.purebasic.fr/english/viewtopic.php?t=31357) you can look at examples of generated docs, sgx/sgxDoc/sgxDoc.html and sgxDocFull.html
- Wed Jan 26, 2022 9:39 am
- Forum: Coding Questions
- Topic: WindowEvent() lag?
- Replies: 21
- Views: 1979
Re: WindowEvent() lag?
I was wrong about 1 fps. The fonts are probably a bit different on linux, so 61 fps was clipped at the left screen edge to 1 fps because the sprite was to small. So I actually get ~60 fps with your code as is. The other 60fps I mentioned was with my own measuring, without being clipped.
- Sun Jan 23, 2022 5:15 pm
- Forum: Coding Questions
- Topic: WindowEvent() lag?
- Replies: 21
- Views: 1979
Re: WindowEvent() lag?
I'm on linux, so probably not helpful. But I get 1 fps with your last code. If I comment out the sprite drawing block, or if I move it into the If-Block (where it makes more sense), then I get 60 fps. But either way it's not affected by moving the mouse.
- Sun Jan 23, 2022 9:37 am
- Forum: Coding Questions
- Topic: WindowEvent() lag?
- Replies: 21
- Views: 1979
Re: WindowEvent() lag?
Yes I misunderstood, got it now. You should try to reduce your lib code to a simple windowedscreen-with-mouse example that reproduces the problem.
- Sun Jan 23, 2022 6:53 am
- Forum: Coding Questions
- Topic: WindowEvent() lag?
- Replies: 21
- Views: 1979
Re: WindowEvent() lag?
StartDrawing() is slower than DisplaySprite() etc., that's how it is. And in windowed screen your refresh rate will be limited by your desktop refresh rate.
- Thu Jan 20, 2022 8:17 pm
- Forum: Coding Questions
- Topic: WindowEvent() lag?
- Replies: 21
- Views: 1979
Re: WindowEvent() lag?
I get like 40 fps with your code, and 60 fps if I disable the screen drawing block. Maybe that's normal?
- Sat Jan 15, 2022 10:49 am
- Forum: Bugs - IDE
- Topic: Add/Remove Marker with function key doesn't work.
- Replies: 2
- Views: 573
Re: Add/Remove Marker with function key doesn't work.
Seems to work here with PB 6.00 b2 on Ubuntu 18.04 / x64 / xfce.
Maybe your desktop environment intercepts some keystrokes?
Maybe your desktop environment intercepts some keystrokes?
- Thu Jan 13, 2022 8:47 am
- Forum: Coding Questions
- Topic: Need idea on setting a directory in the File Explorer
- Replies: 4
- Views: 630
Re: Need idea on setting a directory in the File Explorer
I also wonder if AI-Bert is human (the avatar also looks similar to those AI generated faces).
- Wed Jan 12, 2022 5:20 pm
- Forum: Announcement
- Topic: PureBasic 6.00 released !
- Replies: 626
- Views: 150887
Re: PureBasic 6.00 Beta 2 released !
[...]
I can file a bug report if neccessary.
edit:
bug report now here:
https://www.purebasic.fr/english/viewtopic.php?t=78493
I can file a bug report if neccessary.
edit:
bug report now here:
https://www.purebasic.fr/english/viewtopic.php?t=78493
- Tue Jan 04, 2022 6:59 pm
- Forum: Coding Questions
- Topic: Missing liblto_plugin_0.dll ?
- Replies: 7
- Views: 996
Re: Missing liblto_plugin_0.dll ?
I think it's required by the linker for some optimizations.
- Tue Jan 04, 2022 6:26 pm
- Forum: Linux
- Topic: Compiler crashes when trying to run PB.
- Replies: 16
- Views: 1947
- Mon Jan 03, 2022 1:03 pm
- Forum: Linux
- Topic: Compiler crashes when trying to run PB.
- Replies: 16
- Views: 1947
Re: Compiler crashes when trying to run PB.
If you get permission problems, maybe there is an odd filesystem involved? For example if you download/extract PB onto a FAT32 USB drive first and then copy it into your system then executable permissions of the PB binaries and scripts might get lost in the process because FAT32 doesn't have that. I...