PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

04-04-2005 new version is out!

New version of PPL is now available.

Fixes:

- Fixed the string [] array extension.
- Fixed collision ID -> COLLIDE detection.
- Fixed ShowSprite() to remove sprite from collision detection grid.
- Fixed the * operator for string operations.
- Fixed the ui.ppl library to use the Delete() and Insert() functions properly.
- Fixed internal mouse events code.
Previous build was bad, I've just uploaded a new build.

Sorry for those who downloaded it already! :cry:
Updated again, fixed little bug with the collision detection.
initial tests seem to be good. I'll keep testing. THanks
Just sent you an email, didn't see your post first. :)

Let me know if you find anything strange.
I just noticed that the program I sent you used to run at 151 fps. Now it run at around 40 fps. why do you think this is happening?

1) As I start to kill the enemies, the speed moves up quickly. I wonder if this is a problem with the SpriteProc function.

2) I switched everything to the GameProc() function, and as soon as I turn on GameCollide(True); the fps drop from 150 to a range of 15-39 fps, so it isn't just the SpriteProc.

3) As a side bug, I am now getting an error everytime I true to insert syntax from the menu or comment out code using the menu.

:)
1. I have been able to optimize the collision detection. It should be faster. I get about 90 FPS instead of 40 FPS.

2. You don't need to SetSpriteAISpeed() because this will only be used to trigger WM_TIMER events in the SpriteProc of each sprites. Use the SetAISpeed(10, 5, 5) for example. This sets the WM_TIMER event call speed for the GameProc.

3. I just fixed this issue. The Insert() and Delete() functions were prototyped differently at one point during development and I forgot to change back the source codes.
Little update:

The PIDE now only transfer files that are newer than the destination. This will improve development with the PIDE and testing speed with projects that contains a lot of big files.

It also doesn't automatically delete the .ppc file, so if the source file hasn't changed, PPL won't have to recompile the source file everytime.

I have been planning on doing this modification for a while now but haven't got the change to do it.
Hi Kornalius!
I've just done some PPL and my game testings and I can say that there is no any changes in my game's fps - there are still 13-15 even when all features, except simple sprite moving (and path calculation), are disabled. I would consider this happens because of my problems(bugs in code) if I didn’t have 30-40 fps in the same game using one of the previous releases of PPL.
More updates:

- Compiler error messages are now displayed using the console. Users can modify the ShowError.ppl program to have the errors displayed the way they want.

- PIDE, double-clicking the editor tabs will close them.

- The compiler now accurately checks for output parameters. This new feature won't be available for object.method calls, since they are dynamic and not known at compile time.

- New : operator for functions definition that allow to specify the number of return values for the function.

ex:
Code:
func test(a$):2
return(a$, a$+10);
end;

proc main
v1$, v2$ = test(50);
end;
looks good
Even more updates:

- I have managed code the compiler to reduce the number of opcodes generated for the most used operators. This resulted in a great speed increase again.

- I am now working on a 1 phase optimizer with a few rules. I will add more rules as time goes. So far, it produces some good speed increase with the most used operators.

ex: a$ = 50 + 20 - 30 + z$;

Will result in a$ = 40 + z$

I am very pleased with the progress so far. More updates to come.
just curious, any releases planned today?
No, I still have to do some more testing before I can release it. It should be out early next week.
ok
More updates:

- Instead of a 1 phase optimizer, PPL now has a 3 phases one. I was able to squeeze a lot more optimization rules resulting in a lot less opcodes generated.

- A new very powerful Find() function for the list variables. It comes with a lot of different options.

- New multiple assignment demo added.
Even more updates:

- Worked on the help file. Added a lot of function's descriptions.