Search found 7 matches

by dger
Sun Jun 10, 2018 7:53 pm
Forum: Game Programming
Topic: Grabbing sprites
Replies: 7
Views: 4390

Re: Grabbing sprites

At less you can conclude: grabbing sprites outside main loop is not the issue you are looking for...

The strange things is that more sprite I grab more slower is the refresh, then is somethings sprite related. Main loop is 500 lines, so I I have to work a lot to figure out the bug ...
by dger
Sun Jun 10, 2018 9:09 am
Forum: Game Programming
Topic: Grabbing sprites
Replies: 7
Views: 4390

Re: Grabbing sprites

Small hint:
Don't call this" outside procedure" in the game loop ;-)

No, I do not call that procedure from within the main loop, it's one of the first things I've checked.

However, I write a very basic example of my loop, grabbing 1000000 (one million) sprite and I have a rock solid 60fps. So ...
by dger
Mon Jun 04, 2018 5:03 pm
Forum: Game Programming
Topic: Grabbing sprites
Replies: 7
Views: 4390

Re: Grabbing sprites

It has nothing to do with your hardware, grabbing 300 sprites is probably the wrong way to go.

If you use these grabbings to create tiles, you probably should do it before the main loop of your game.
But it's hard to say without any code to know for sure what you are doing wrong...

Hello,
thank ...
by dger
Sun Jun 03, 2018 3:19 pm
Forum: Game Programming
Topic: Grabbing sprites
Replies: 7
Views: 4390

Grabbing sprites

Hello to all,
I noticed that grabbing many sprites (about 300), even if used only a part, the screen refresh slows down. How is it possible?

I have a medium power computer (core i7, HD4000) so I do not understand how it is possible ...

I used sprite as tile to draw the screen, is this approach ...
by dger
Sun Aug 27, 2017 2:55 pm
Forum: The PureBasic Editor
Topic: I'm new and I can't debug
Replies: 5
Views: 4367

Re: I'm new and I can't debug

Zebuddi123 wrote:Hi There`s also a standalone debugger in the File->Preferences->debugger menu top left combobox dropdown.

Zebuddi. :)
Found! Thanks
by dger
Sun Aug 27, 2017 1:46 pm
Forum: The PureBasic Editor
Topic: I'm new and I can't debug
Replies: 5
Views: 4367

Re: I'm new and I can't debug

mk-soft wrote:Changes position of Breakpoint.
- Inside of Procedure
- Inside Mainscope
- Not between Procedures
It worked!! Many thanks!
by dger
Sun Aug 27, 2017 12:46 pm
Forum: The PureBasic Editor
Topic: I'm new and I can't debug
Replies: 5
Views: 4367

I'm new and I can't debug

Hi all,
I'm new to purebasic (I dont programming games since AMOS BASIC on the AMIGA).

Now I'm codig since few days, and I have a problem using the debugger:

I have inserteed a break point (F9) on the source editor, started execution from "compile->compile with debugger", then, when the excution ...