Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,771
» Latest member: 8xbettwales
» Forum threads: 2,732
» Forum posts: 12,818

Full Statistics

Online Users
There are currently 378 online users.
» 0 Member(s) | 376 Guest(s)
Bing, Google

Latest Threads
yreyhrey
Forum: Support
Last Post: c0pkl354
7 hours ago
» Replies: 0
» Views: 12
eryreyeg
Forum: Videos and Screenshots
Last Post: c0pkl354
7 hours ago
» Replies: 0
» Views: 13
freyrehru
Forum: Chat
Last Post: c0pkl354
7 hours ago
» Replies: 0
» Views: 14
getwretwy
Forum: Releases
Last Post: c0pkl354
7 hours ago
» Replies: 0
» Views: 17
SAMP Tres Islas Reality R...
Forum: Advertisements
Last Post: RenzyYtribe
Yesterday, 02:06 PM
» Replies: 0
» Views: 37
Pawntools | Dialog and 3D...
Forum: Releases
Last Post: Romzes
Yesterday, 01:44 PM
» Replies: 16
» Views: 37,288
Duskfade Combines Time, A...
Forum: Life
Last Post: Kaevorlly
Yesterday, 06:25 AM
» Replies: 0
» Views: 26
trutrujrtu
Forum: Pawn Scripting
Last Post: c0pkl354
Yesterday, 05:39 AM
» Replies: 0
» Views: 23
hyreeyry
Forum: Questions and Suggestions
Last Post: c0pkl354
Yesterday, 05:37 AM
» Replies: 0
» Views: 28
eeryhrey
Forum: General Discussions
Last Post: c0pkl354
Yesterday, 05:35 AM
» Replies: 0
» Views: 29

 
Rainbow Parallel for missing iterations?
Posted by: visibleonbush1 - 2024-01-18, 07:00 PM - Forum: Questions and Suggestions - Replies (2)

Hi, I'm working on optimizing a piece of code, the code performs well for smaller values of 'n' (e.g., 10,000), but when 'n' is significantly larger (e.g., 100,000), it seems to skip a considerable number of iterations. Specifically, I've tested it with 'n' set to 100,000, and it only executes 1,410,065,408 iterations out of the expected 10,000,000,000., im asking here because if n is not so big (10k) he is perfectly fine, am i missing anything (thank you in advance).

Code:
int compute_forces( void )
{
    int n_intersections = 0;
    int nThread = omp_get_num_threads();
    int *nit = calloc(8, sizeof(int));
    long long asdf = 0;
    // Parallelized the outer function, because the internal would have a lot more overhead
    #pragma omp parallel for collapse(2) default(none) shared(ncircles, circles, EPSILON, K, nit) schedule(static, ncircles) reduction(+:n_intersections) reduction(+:asdf)
    for (int i=0; i<ncircles; i++) {
        for (int j=0; j<ncircles; j++) {
            //nit[omp_get_thread_num()]++;
            asdf++;
            if (j <= i) {
                continue;
            }
           
            const float deltax = circles[j].x - circles[i].x;
            const float deltay = circles[j].y - circles[i].y;
            const float dist = hypotf(deltax, deltay);
            const float Rsum = circles[i].r + circles[j].r;

            if (dist < Rsum - EPSILON) {
                n_intersections++;
                const float overlap = Rsum - dist;
                assert(overlap > 0.0);

                const float overlap_tmp = overlap / (dist + EPSILON);
               
                const float overlap_x = overlap_tmp * deltax;
                const float overlap_y = overlap_tmp * deltay;

                #pragma omp atomic
                circles[i].dx -= overlap_x;
               
                #pragma omp atomic
                circles[i].dy -= overlap_y;

                #pragma omp atomic
                circles[j].dx += overlap_x;

                #pragma omp atomic
                circles[j].dy += overlap_y;
            }
        }
    }


Sad why when I run the server suddenly it closes by itself
Posted by: unyukya8503 - 2024-01-18, 07:15 AM - Forum: Support - Replies (2)

when I want to run the server in gamemode suddenly the application closes itself a few minutes when I enter my sample server, please explain


  JSON Gamemode Base
Posted by: Dev86 - 2024-01-16, 01:52 PM - Forum: Gamemodes - No Replies

JSON Gamemode Base
An OpenMP gamemode that stores player data in a JSON Object using samp-json.

Example of a player object:

Code:
{
  "id": 0,
  "name": "Davorin_Adler",
  "password": "<password-hash-goes-here>"
}


All columns on your MySQL Database will be loaded into your JSON Object.

NOTE:
I have written this initially for a gamemode I was personally going to be working on. However, it turned out to be more of a hassle to work with than anything.
I would recommend you base your new gamemode with this if you are a martyr.

DEPENDENCIES:
pawn-json
MySQL R41-4 by pBlueG
YSI 5.x
- y_inline
- y_inline_mysql
- y_inline_bcrypt
- y_dialog

INSTALL:
https://github.com/sampdevi/samp-json-auth

no sampctl support (yet) I'm too lazy zzzzzz


  pawn scripting
Posted by: Surrealxo - 2024-01-13, 12:47 AM - Forum: Pawn Scripting - Replies (3)

can someone help me with a game mode i am trying to create.


  Island Map by HajAta
Posted by: Ata - 2024-01-11, 01:12 AM - Forum: Maps - No Replies

Island Map by HajAta

Dowload: Link
https://ibb.co/94vCXK5


Photo Modern LSPD HD Map
Posted by: Ata - 2024-01-11, 01:00 AM - Forum: Maps - Replies (1)

Modern LSPD HD MAP


My project in making SA:MP map
Link Dowload: Click

[Video: https://www.youtube.com/watch?v=MrWG5_F7gR8]




  Chat Config
Posted by: eubluen - 2024-01-09, 09:56 AM - Forum: Libraries - No Replies

Chat Config
Download:

Summary of the Include:
- You will be able to globally or per player control whether they will have the chat enabled or not. It's an include that will help those who want to create an RP server or a project without chat. More information is available in the repository on GitHub. If there are any bugs or anything of the sort, just give me a heads up.
Enjoy :)


  couldn't announce legacy network error
Posted by: CJ101 - 2024-01-09, 01:13 AM - Forum: Support - Replies (1)

This started happening out of nowhere. (However, i did upgrade to latest open.mp Build)

Code:
[00:25:40] [Info] Couldn't announce legacy network to open.mp list.
[00:25:40] [Info] [Server Error] Status: 406
[00:25:40] [Info] [Server Error] Message: {"error":"failed to query server: failed to resolve host: address 2604:2dc0:101:200::1cee:7777: too many colons in address"}


Exclamation SAMP not starting
Posted by: StudioTeamTV - 2024-01-08, 08:52 PM - Forum: General Discussions - No Replies

When i want to play SAMP then i logically click on samp (run as admin) and connect but when i connect to the wtls s1 then when i login it crash i try almost all methods but it not work PLEASE HELP MEEEE

(reinstall of pc dont working)


  Please help me with this error, i don't understand what i have to do, but the file al
Posted by: KumalaX - 2024-01-07, 04:50 PM - Forum: Pawn Scripting - Replies (2)

D:\gm\gamemodes\pawno\include\progress2.inc(23) : fatal error 111: user error: could not locate a_samp.inc file, please check your server includes

I don't understand this error, but the file in question already exists