![]() |
#1 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2013
Location: Area 51
Posts: 1,629
Reputation: 122
|
![]()
is they any faster pwn compiler because mine seems to take time just to compile if so can you link me anything that makes it compile to AMX faster without messing any coding up.
|
![]() |
![]() |
![]() |
#2 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2009
Location: Sweden
Posts: 3,849
Reputation: 234
|
![]() |
![]() |
![]() |
![]() |
#3 |
Huge Clucker
![]() ![]() ![]() Join Date: Mar 2012
Location: Romānia
Posts: 217
Reputation: 21
|
![]()
To compile faster, you need a better PC. There is no other way.
All the editors use the same compiler. |
![]() |
![]() |
![]() |
#4 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2009
Location: Poland
Posts: 2,530
Reputation: 554
|
![]()
Yup, pawncc is only choice you have. I'll attempt to write one based on LLVM, but not in the nearest future. https://github.com/Zeex/pawn/ - you can rewrite pawncc better if you know how.
|
![]() |
![]() |
![]() |
#5 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2009
Location: The Netherlands
Posts: 2,502
Reputation: 844
|
![]()
I doubt you can, since this compiler is adapted for SA-MP.
|
![]() |
![]() |
![]() |
#6 | |
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2011
Location: England
Posts: 6,379
Reputation: 973
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Banned
![]() Join Date: Jun 2007
Location: Western Germany
Posts: 5,069
Reputation: 1597
|
![]()
CPU and RAM speed will directly affect the compiler speed.
The best cheap way to speed it up still is to optimize the script, or to optimize the frequency of compiling. Unless you got no idea what youre doing you dont neccessarily need to compile the gamemode every new line. With some plans and attention you can also write several hundred lines without compiling it, and without the risk to add compiler crash bugs that take hours to fix. Alternatively, just use the compiling time and continue working on the script (you might need to use another editor as not all editors run the compiler in background). The compiler just reads the script once, so theres no problem with saving it once the compiler is running (afaik). However, this kind of scripting can be nasty at some points, especially when youre already in some completely different part of the code when the compiler tells you theres a problem in the part your wrote 15 minutes ago. So in order to use the time effectively you should be able to focus on multiple parts of the script at once. Then youre not losing any time to the slow compiler. |
![]() |
![]() |
![]() |
#8 |
Huge Clucker
![]() ![]() ![]() Join Date: Feb 2013
Posts: 319
Reputation: 382
|
![]()
You can try the compiler which Misur has linked to, it runs a bit faster than the official SA-MP compiler. For example, compiling Los Angeles Roleplay took for me about 20% less time in release mode (with -d0) and about 60% in debug mode (-d3).
Last edited by xeeZ; 01/03/2014 at 03:43 PM. |
![]() |
![]() |
![]() |
#9 | ||||
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2013
Location: Area 51
Posts: 1,629
Reputation: 122
|
![]() Quote:
Quote:
i have not seen one without using the pawncc.exe Quote:
![]() i might follow that wiki on my next project. Quote:
A friend of mine goes to college to do something like that not pretty sure maybe he can help me out if he understands pwn scripting. |
||||
![]() |
![]() |
![]() |
#10 |
Banned
![]() Join Date: Feb 2013
Location: 629
Posts: 166
Reputation: 88
|
![]()
Well the obvious thing to say based on what you said is don't put your maps in the script - put them in a .map file or something and include a map loader. That way you make the script vastly smaller and don't need to re-compile just to change your mapping, just change and re-load the map file.
Of course, the real question is HOW long does it take? Anything around a minute, you could just go make a cup of tea while waiting. Things mentioned like reducing lines (especially comments) are terrible ideas as they make your code less readable and will not make a noticeable difference to compile times (comments are about the fastest thing to compile, because they do nothing). |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PAWN Compiler Error Unable to execute Compiler.. | Geeboi_Mehdi | General | 13 | 07/11/2015 05:26 PM |
Please help ( PAWN Compiler "Error Unable to execute Compiler...") | morocco | Scripting Help | 4 | 05/02/2013 04:34 PM |
Which is more faster? | Fernado Samuel | Scripting Help | 19 | 18/01/2013 04:56 PM |
Which is faster ? | cotyzor | Scripting Help | 1 | 14/01/2013 07:30 AM |
[Pawno Compiler] Unable to Execute the Compiler | Fabio11 | Client Support | 6 | 26/09/2010 10:37 PM |