GP3RT 1.0.3GP3RT 1.0.3 — Pistas muito detalhadas: carros sumindo, polígonos cinza e fechamento do jogo
Pacote: GP3RT-1.0.3-Windows.zip (Windows 10/11 · GP3 1.13 e GP3 2000)O sintomaNas pistas de 1998 do Belini (e em outras pistas muito detalhadas), sempre acontecia a mesma sequência:
os carros apareciam só com as rodas, sem carroceria;
surgiam polígonos cinza soltos e árvores piscando;
poucos segundos depois o jogo fechava sozinho, sem mensagem.
Em Spa 98 dava para repetir: na saída da curva 10, a câmera de TV se afasta e passa a mostrar um pedaço grande da pista com vários carros, e o jogo fecha. A chuva e o PO alto pioravam tudo.
Como a causa foi descobertaA pista foi descartada primeiro: o defeito aparecia em várias pistas do Belini, não só em Spa, e ajustar as câmeras da pista não resolveu.
A pista que faltava veio das imagens capturadas pouco antes do fechamento. Elas mostravam, no mesmo quadro, carros sem carroceria e grandes polígonos cinza, sempre com a câmera afastada e muitos carros na tela. Ou seja, o problema crescia junto com a quantidade de coisas desenhadas ao mesmo tempo, e não com um lugar específico da pista.
O registro do fechamento apontava sempre para o mesmo ponto do Gp3.exe, dentro da rotina que desenha polígonos. Seguindo esse ponto até a origem dos dados, chegamos à lista que o jogo monta a cada quadro e ao limite dela.
A causa: um limite antigo do próprio GP3
A cada quadro, o GP3 monta uma lista com as bordas de todos os polígonos que vai desenhar. Essa lista tem espaço fixo para 2.999 itens, mais uma área de trabalho de cerca de 100 KB. Isso bastava para as pistas originais de 1998/2000.
As pistas da comunidade têm muito mais detalhe (árvores, arquibancadas, objetos). Com a câmera aberta mostrando a pista e o pelotão inteiro, a lista enche. Aí o jogo:
descarta o que não coube: as carrocerias costumam ficar de fora, por isso só as rodas apareciam;
esquece um número antigo dentro de cada item descartado, apontando para dados de um quadro anterior. É esse lixo que aparece como polígonos cinza;
quando esse número velho aponta para memória que já foi reaproveitada, o jogo lê um endereço inválido e fecha (no GP3 2000, em gp3.exe+0x69480).
Não era defeito da pista nem do GP3RT: é um limite do GP3 com um erro no tratamento de quando ele é ultrapassado. Por isso as pistas mais caprichadas eram justamente as que mais sofriam.
A correçãoAo abrir o jogo, o GP3RT ajusta o Gp3.exe na memória (o arquivo não é alterado):
a lista passa de 2.999 para 16.000 itens por quadro;
a área de trabalho passa de ~100 KB para 2 MB;
se ainda assim faltar espaço, o item descartado recebe um número válido em vez do antigo, então o jogo não fecha.
A DLL reconhece sozinha o GP3 1.13 e o GP3 2000. Se o Gp3.exe for diferente do esperado, ela não mexe em nada.
No gp3rt.log aparece a linha:
3D edge limit: 2999 -> 16000 edges
Para desligar (não recomendado): edge_fix=0 no gp3rt.ini, seção [game].
TestesSpa 98 com a câmera de TV afastada e muitos carros: os carros ficam completos e o jogo não fecha mais.
Teste de estresse com o limite reduzido de propósito para 500 itens: mais de 400 mil estouros e o jogo continuou rodando, sem fechar e sem lixo na tela.
Corrida normal no GP3 1.13 e no GP3 2000 sem nenhuma diferença visual.
O PO alto nessas pistas continua, porque é o peso real de desenhar tanta coisa. O que acaba é o fechamento e os carros sumindo.
E o Linux?A versão Linux (GP3 Reborn para Linux 1.0.2) já tem a mesma correção e está pronta, mas ainda não será publicada. Ela traz uma tela própria para o GPxPatch e adaptações para que ele rode no Linux. O GPxPatch é um trabalho de outro autor, e por respeito a ele só vou publicar essa parte depois de pedir e receber a permissão dele.
Como atualizarSubstitua o ddraw.dll na pasta do jogo pelo desta versão. Seu gp3rt.ini atual continua valendo, e a correção vem ligada por padrão.
Obrigado a quem testou e mandou logs e imagens. Foram elas que levaram à causa. Ao relatar um problema, informe a versão do jogo (1.13 ou 2000), a pista, a câmera usada e anexe o gp3rt.log.
GP3RT 1.0.3 — Highly detailed tracks: cars disappearing, gray polygons, and game crashes
Package: GP3RT-1.0.3-Windows.zip (Windows 10/11 · GP3 1.13 and GP3 2000)The symptomOn Belini’s 1998 tracks (and other highly detailed tracks), the same sequence of events would consistently occur:
cars would appear with only their wheels visible, lacking a body;
stray gray polygons would emerge, and trees would flicker;
a few seconds later, the game would crash/close automatically, without any error message.
At Spa '98, this could be reliably reproduced: upon exiting turn 10, the TV camera pulls back to show a large section of the track containing multiple cars, at which point the game crashes. Rain and a high polygon count (PO) only made the situation worse.
How the cause was discoveredThe track itself was ruled out early on: the issue appeared across several of Belini’s tracks—not just Spa—and adjusting the track cameras did not provide a solution.
The key clue came from screenshots captured just before the crash. They showed—in a single frame—cars missing their bodies alongside large gray polygons, occurring whenever the camera pulled back to reveal many cars on screen. In other words, the problem scaled with the number of objects being rendered simultaneously, rather than being tied to a specific location on the track.
The crash log consistently pointed to the same point within Gp3.exe—specifically, within the routine responsible for rendering polygons. Tracing this point back to the source of the data, we arrive at the list the game compiles for every frame—and the limit imposed on it.
The cause: a legacy limit within GP3 itself.
For every frame, GP3 assembles a list containing the edges of all the polygons it intends to render. This list has a fixed capacity of 2,999 items, plus a workspace of approximately 100 KB. This was sufficient for the original tracks from 1998/2000.
Community-created tracks feature significantly more detail (trees, grandstands, various objects). When the camera view is wide enough to show both the track and the entire field of cars, the list reaches its capacity. At that point, the game:
discards whatever cannot fit—car bodies are typically the first to be dropped, which is why only the wheels would remain visible;
retains an outdated reference number within each discarded item, which points to data from a previous frame. This "garbage" data is what manifests as gray polygons;
if this stale reference points to a memory address that has since been reallocated, the game attempts to read an invalid address and crashes (in GP3 2000, this occurs at `gp3.exe+0x69480`).
This was neither a flaw in the track files nor in GP3RT; rather, it is a hard limit in GP3, coupled with an error in how the game handles exceeding that limit. Consequently, the most highly detailed tracks were the ones most prone to this issue.
The fixUpon launching the game, GP3RT modifies the `gp3.exe` process in memory (the actual file on disk remains unchanged):
the list capacity is increased from 2,999 to 16,000 items per frame;
the workspace is expanded from ~100 KB to 2 MB;
should the space still prove insufficient, any discarded item is assigned a valid reference number instead of an outdated one, preventing the game from crashing. The DLL automatically detects GP3 1.13 and GP3 2000. If the `Gp3.exe` file differs from what is expected, it will not make any changes.
The following line appears in `gp3rt.log`:
3D edge limit: 2999 -> 16000 edges
To disable this (not recommended), set `edge_fix=0` under the `[game]` section in `gp3rt.ini`.
TestsSpa '98, using a distant TV camera view with many cars present: the cars remain fully rendered, and the game no longer crashes.
Stress test with the limit intentionally reduced to 500 items: despite over 400,000 overflows, the game continued to run without crashing or displaying graphical artifacts.
Standard racing in both GP3 1.13 and GP3 2000 shows no visual differences.
High "PO" (processing load) values on these tracks persist, as this reflects the actual computational cost of rendering so many elements; however, the game crashes and the issue of cars disappearing have been resolved.
What about Linux?The Linux version (GP3 Reborn for Linux 1.0.2) already includes this fix and is ready, but it will not be released just yet. It features a dedicated interface for GPxPatch, along with the necessary adaptations to run on Linux. Since GPxPatch is the work of another author, I will only release this component once I have requested and received his permission.
How to updateReplace the `ddraw.dll` file in your game folder with the one from this version. Your existing `gp3rt.ini` file remains valid, and the fix is enabled by default.
Thank you to everyone who tested the software and provided logs and screenshots—these were instrumental in identifying the root cause. When reporting an issue, please provide the game version (1.13 or 2000), the track, the camera view used, and attach the gp3rt.log file.